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
41 weeks 3 days ago
49 weeks 3 days ago
1 year 3 weeks ago
1 year 43 weeks ago
2 years 17 weeks ago
2 years 43 weeks ago
3 years 48 weeks ago
4 years 13 weeks ago
4 years 19 weeks ago
4 years 34 weeks ago