max-age

Thiago Figueiro TFigueiro at au.westfield.com
Mon Dec 13 22:37:00 CET 2010


In my experience it's better if you're able to let Varnish trust the
max-age specified by the backends.

Otherwise, as time goes by, you will have so many rules in your VCLs
that you will make it hard to understand.

Most web servers allow you to configure cache headers based on the
content type; I suggest you try that approach before hacking your
Varnish configuration.


Cheers,
Thiago.


-----Original Message-----
From: varnish-misc-bounces at varnish-cache.org
[mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of alexus
Sent: Tuesday, 14 December 2010 4:24 AM
To: varnish-misc at varnish-cache.org
Subject: max-age

how/where can I define a cache (max-age) in default.vcl ?
I have few PDF files that being cached and 2 weeks seems a bit much in
my opinion, I'd like to change that.

-- 
http://alexus.org/

_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

______________________________________________________
    CONFIDENTIALITY NOTICE    
This electronic mail message, including any and/or all attachments, is for the sole use of the intended recipient(s), and may contain confidential and/or privileged information, pertaining to business conducted under the direction and supervision of the sending organization. All electronic mail messages, which may have been established as expressed views and/or opinions (stated either within the electronic mail message or any of its attachments), are left to the sole responsibility of that of the sender, and are not necessarily attributed to the sending organization. Unauthorized interception, review, use, disclosure or distribution of any such information contained within this electronic mail message and/or its attachment(s), is (are) strictly prohibited. If you are not the intended recipient, please contact the sender by replying to this electronic mail message, along with the destruction all copies of the original electronic mail message (along with any attachments).
______________________________________________________




More information about the varnish-misc mailing list