issues with page refresh
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jul 21 22:36:01 CEST 2008
In message <f401c82a0807171936p1d276922q29846c5996f8d025 at mail.gmail.com>, "Jack
Tuhman" writes:
>1) if a user presses refresh or F5, they do not see any images, if they
>click on a link, they see an image.
I will need more debugging info to find out what is going on.
In particular a varnishlog output.
>2) If I wanted Varnish to cache the php pages (right now I pass them) but
>clear its cache every 30 seconds, is there an easy way to do this?
In the vcl code you included, you set the TTL to 3 minutes minimum,
you could do something like:
if (obj.url ~ "\.php") {
set obj.ttl = 30s;
}
>sub vcl_recv {
> if (req.request == "POST") {
> pipe;
> }
If you use a recent version of -trunk, you can & should use pass here.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list