caching php
Cedric Tabary
tabary at efrei.fr
Wed Oct 11 16:51:29 CEST 2006
On 11/10/2006 14:37, Poul-Henning Kamp wrote:
> In message <20061011142915.GC34666 at efrei.fr>, Cedric Tabary writes:
> >On 11/10/2006 16:17, Anton Stonor wrote:
> >> Cedric Tabary wrote:
> >>
> >> >I removed the -t 1200, but my php is still cached !
> >>
> >> Well, maybe the HTTP headers from the backend invites Varnish to cache.
> >> Or there _could_ be a bug in Varnish.
> >>
> >> Could you post an example HTTP header of an object you expect Varnish
> >> not to cache?
>
> Varnish has a "default TTL" which you can specify on the command line
> or modify from the CLI.
>
> Absent any instruction from the backend, Varnish will cache objects
> that long.
Ok so I have to put -t 0 and specify a Cache-Control with mod_expires
on static content ?
And if I put a Cache-Control header in a specific php script I
can also make it cacheable ?
this sounds good to me :)
I will try this...
Cédric
More information about the varnish-misc
mailing list