Squid http accelerator support & Pragma: No-Cache header
Submitted by wondra on Thu, 2010-02-11 12:45.
In attempt to tune the performance of my PHPAlbum, I configured Squid in accelerator mode. Caching images through squid is much faster than the built-in caching feature, because of eliminating the overhead of starting the PHP interpretter for every picture. However, I need to be able to discern the dynamically generated pages from the more static images. It would be great if the PHP scripts inserted a No-Cache header in the truly dynamic HTTP replies.
My current and working solution is adding this to the Squid config file:
acl albumdyn urlpath_regex \?cmd\=album \?cmd\=setup
no_cache deny albumdyn

Recent comments
1 hour 30 min ago
13 hours 29 min ago
13 hours 29 min ago
13 hours 29 min ago
13 hours 29 min ago
1 day 3 hours ago
1 day 8 hours ago
1 day 21 hours ago
2 days 5 hours ago
2 days 6 hours ago