View Single Post
  #8  
Old 02-12-2013, 02:42 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 96
Hello,

My .htaccess file :

Code:
RewriteEngine On

RewriteRule \.php - [E=Cache-Control:private,E=Cache-Control:max-age=300]
#end of file
I used your r.php script

Cache-Crontrol is an environement variable, if you set it twice it's normal that the second value replaces the first.

You need to be able to set both values seperated by a comma. However I havn't found the correct syntax to do this :

I've tried without success things like this :
Code:
RewriteRule \.php - [E=Cache-Control:'private, max-age=180']
But it gives an error in ls logs:
Code:
ERROR	[[HTAccess]] rewrite: Unknown rewrite rule flag while parsing: RewriteRule \.php - [E=Cache-Control:'private, max-age=180']
My cache is set to :

Code:
Enable Cache : Not Set
Cache Expire Time (seconds) : Not Set
Cache Request with Query String : Yes
Cache Request with Cookie : No
Cache Response with Cookie : No
Ignore Request Cache-Control : No
Ignore Response Cache-Contro : No
Enable Private Cache : Not Set
Private Cache Expire Time (seconds) : 60
Thanks
Reply With Quote