Jeff Peng wrote:
On Sat, Jun 28, 2008 at 11:40 PM, Roy M. <setesting001@xxxxxxxxx> wrote:
You have a blog application, and use Squid as reverse proxy to cache
the dynamic pages.
How do you cache the dynamic pages? ignore Cache-Control: private
headers or something like that?
No. Squid will cache dynamic pages the same as static ones. Most dynamic
pages don't have private set. Just short max-ages or no cache-controls
at all.
The biggest obstacle is old legacy entries in squid.conf from the days
when dynamic pages were very cache-unfriendly.
- Drop the QUERY acl
- Drop the cache lines that use QUERY
- Add "refresh_pattern (/cgi-bin/|\?) 0 0% 0" just above the final "."
refresh_pattern.
Squid should now happily cache dynamic pages according to RFC2616.
Amos
--
Please use Squid 2.7.STABLE3 or 3.0.STABLE7