View Single Post
  #2  
Old 01-20-2011, 06:06 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
testnocache.php get's cached even with htaccess below

Code:
RewriteRule /test.php - [E=Cache-Control:max-age=45]
response header with cache policy as

Code:
Enable Cache:No
Cache Request with Query String:Yes
Cache Request with Cookie:Yes
Cache Response with Cookie:Yes
Ignore Request Cache-Control:Yes
Ignore Response Cache-Control:Yes
Code:
Content-Encoding	gzip
Vary	Accept-Encoding
Date	Thu, 20 Jan 2011 14:05:10 GMT
Server	LiteSpeed
Connection	Keep-Alive
Keep-Alive	timeout=5, max=100
X-Powered-By	PHP/5.3.4
CurrentTime	Thu, 20 Jan 2011 14:05:10 GMT
Content-Type	text/html; charset=UTF-8
Content-Length	78
contents of cache

Code:
ls -alhR /lscache
/lscache:
total 16K
drwxrwxrwx  3 nobody nobody 4.0K Jan 21 00:05 .
drwxr-xr-x 25 root   root   4.0K Jan 20 23:06 ..
drwx------  3 nobody nobody 4.0K Jan 21 00:05 e

/lscache/e:
total 12K
drwx------ 3 nobody nobody 4.0K Jan 21 00:05 .
drwxrwxrwx 3 nobody nobody 4.0K Jan 21 00:05 ..
drwx------ 3 nobody nobody 4.0K Jan 21 00:05 9

/lscache/e/9:
total 12K
drwx------ 3 nobody nobody 4.0K Jan 21 00:05 .
drwx------ 3 nobody nobody 4.0K Jan 21 00:05 ..
drwx------ 2 nobody nobody 4.0K Jan 21 00:05 d

/lscache/e/9/d:
total 12K
drwx------ 2 nobody nobody 4.0K Jan 21 00:05 .
drwx------ 3 nobody nobody 4.0K Jan 21 00:05 ..
-rw------- 1 nobody nobody  237 Jan 21 00:05 e9d22bcd

Last edited by eva2000; 01-20-2011 at 06:08 AM..
Reply With Quote