Re: [squid-users] Documentation for non-Sys Admins

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Thu, 27 Jan 2011 11:23:39 +0100

On 21.01.11 15:52, Andy Nagai wrote:
> As a developer I need to know how to control individual page caching. I
> heard from somebody to add a expire meta tag to refresh the cache.
>
> Two things I need to do:
>
> 1) prevent caching for certain pages
> 2) set the cache refresh rate for the rest of the pages. Would like to
> refresh pages every 15 minutes.

Much more effective is to provide proxies way to tell server which version
of page do they have and check if it's still fresh.

Learn how the If-Modified-Since and Etag: headers work. And of course the
Cache-Control...

I think the only case where you really need page that is not cached is where
you put the current timestamp into the (x)html instead of using e.g.
javascript.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Where do you want to go to die?" [Microsoft]
Received on Thu Jan 27 2011 - 10:23:48 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 27 2011 - 12:00:03 MST