Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Does varnish support "If-None-Match"-requests?



Varnish misc RSS feed   Index | Next | Previous | View Threaded

kai at ich-geh-kaputt

Apr 2, 2012, 12:12 PM

Post #1 of 1 (493 views)
Does varnish support "If-None-Match"-requests?

Because I do not want to teach my backend-server, how to purge cached
pages, I gave my pages a relatively short max-age (about 300s), so that
caches regularly have to ask the server, if the page has changed. I also
set a strong ETag-header on all pages, so that these requests can be
done with a "If-None-Matches"-header. The ETag only changes, when the
content really changes, so that most requests can be answred with a 304

This setup works well with browser-caches and squid & co. But it seems
as if varnish always issues a non-conditional request, when the page was
expired since the last cache-hit. Does varnish ignore the ETag-header if
max-age and/or Expires are set or is this a configuration issue?


Kai Moritz

varnish-misc mailing list
varnish-misc [at] varnish-cache

Varnish misc RSS feed   Index | Next | Previous | View Threaded

Interested in having your list archived? Contact Gossamer Threads
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.