user26858
user26858

Reputation:

500 error when trying to add expires header to .htaccess

I'm trying to add a far future expires header by editing my .htaccess file

this is recommended in the yslow performance rules

but when I do, I get a 500 internal server error

here's the code I'm using, any body know what's up?

ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000

Upvotes: 1

Views: 1994

Answers (1)

user26858
user26858

Reputation:

Looks like I didn't have mod_expires in this apache build, that will fix it

Upvotes: 1

Related Questions