[squid-users] expires time problem between apache and squid

From: ǧǧãÚ¸è <computer11111@dont-contact.us>
Date: Tue, 27 Nov 2007 13:06:27 +0800

squid-users£¬ÄúºÃ£¡

Redhat Linux AS 4: squid2.6.STABLE16 + apache 2.0.61

1.I use apache to control cache time ,
  <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType text/html A60
    ExpiresByType text/css A1296000
    ExpiresByType image/gif A1296000
    ExpiresByType image/jpeg A1296000
    EXpiresByType application/x-shockwave-flash A1296000
    EXpiresByType application/x-javascript A1296000
    ExpiresDefault A60
  </IfModule>
  
  then i found the squid can't cache , and the i change A60 to A61 , the squid work well!
  
2.If i use squid control the cache time£¬it also dosn't work!
  refresh_pattern -i ^http://media.mydomain.com/ 1 100% 1 override-lastmod override-expire reload-into-ims (1 minute can't cache)
  
refresh_pattern -i ^http://media.hexun.com/ 2 100% 2 override-lastmod override-expire reload-into-ims (when i set 2 minute , it works! )

  i really don't known why!
By the say: in my intranet , all server ntpdate from ntpserver every several minutes!

  







Received on Mon Nov 26 2007 - 22:08:16 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST