Hello to list,
I have a requirement to cache non-cachable objects. I have tried on my own, googled a lot but could not able to do. Can any body help me to achieve this, please. I know that this is against the HTTP policy, but i have to do it. Many people have done this i think in squid.
squid 3.0.7STABLE's squid.conf
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 999999 100% 999999 override-expire override-lastmod ignore-no-store ignore-reload ignore-no-cache ignore-private
refresh_pattern -i \.(html|php|asp|dll|htm|aspx|mspx|shtml|cgi|php3|jse|phtml|po|pl|fcgi|jsp|py|php4|text|txt|js)$ 999999 100% 999999 ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
refresh_pattern -i (cam|kam|live|stream).*\.(gif|jpeg|jpg)(\?.*|)$ 999999 100% 999999 override-expire override-lastmod ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
refresh_pattern -i \.(gif|jpeg|jpg|swf|png|bmp|pic)$ 999999 100% 999999 override-expire override-lastmod ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
refresh_pattern -i \.(js|css|class|jar|xml|txt|cfm|doc|xls|pdf)$ 999999 100% 999999 override-expire override-lastmod ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
refresh_pattern -i \.(exe|gz|tar|tgz|zip|arj|ace|bin|cab|msi)(\?.*|)$ 999999 100% 999999 override-expire override-lastmod ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
refresh_pattern -i \.(mid|mp[234]|wav|ram|rm|au)(\?.*|)$ 999999 100% 999999 override-expire override-lastmod ignore-no-store ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.(mpg|mpeg|avi|asf|wmv|wma)(\?.*|)$ 999999 100% 999999 override-expire override-lastmod ignore-no-store ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern . 999999 100% 999999 override-expire override-lastmod ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth
And the header of the page to which i am trying to cache is
Set-Cookie: sessioncookie=f8336e8eb4726523f2f8be76cb7f9be8; expires=Thu, 31 Jul 2008 01:02:46 GMT; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 30 Jul 2008 13:02:47 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
When i am accessing this page, in access log i got
1217419381.382 1284 192.168.99.23 TCP_REFRESH_MODIFIED/200
It means that the page is not in the cache. Please help me i will be very thankful to you all.
Bijayant Kumar
Send instant messages to your online friends http://uk.messenger.yahoo.com
Received on Wed Jul 30 2008 - 13:06:35 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 31 2008 - 12:00:05 MDT