caching - Cache css/js from PHP processor -


i've built php processor process css , js files.

the .htaccess rewrites css , js files point processor.

the processor gets contents of css/js file, processes , outputs browser.

for reason css , js files refuse cache? i've set "expires" , "cache-control" headers, still no luck.

any suggestions?

thanks

edit

here's of code:

function setexpires($expires) {    header('expires: '.gmdate('d, d m y h:i:s', time()+$expires).' gmt');    header("cache-control: max-age=$expires, public");  header("connection: close"); } 

i'm using google chrome dev tools. headers coming this:

request url:http://www.static.do-u-know.net/css/common.1286502074.css request method:get status code:200 ok  request headers accept:text/css,*/*;q=0.1 cache-control:max-age=0 referer:http://www.do-u-know.net/frame.php user-agent:mozilla/5.0 (windows; u; windows nt 6.1; en-us) applewebkit/534.3 (khtml, gecko) chrome/6.0.472.63 safari/534.3  response headers cache-control:max-age=631138519, public connection:close content-encoding:gzip content-type:text/css date:fri, 08 oct 2010 02:41:12 gmt expires:mon, 07 oct 2030 22:56:31 gmt server:apache/2.2.11 (unix) mod_ssl/2.2.11 openssl/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 frontpage/5.0.2.2635 transfer-encoding:chunked vary:accept-encoding x-powered-by:php/5.2.5 


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -