views:

202

answers:

1

I am using php on an Apache server. I am unable to set expiration headers in .htaccess on the server that I am working on, as it is a shared server and they (the web host) will not install the mod_expires module in the apache build. I have always used the "ExpiresActive On" and set the default cache expiration for images, js, xml and text files within the .htaccess file.

What are my other options?

thanks.

A: 

Somebody might come up with an Apache specific solution that works without the module, but as a last resort, if there is no other way, you could route all your traffic through PHP and output headers there. But that would mean sending every resource through the PHP interpreter, and be horribly expensive.

Pekka