A
A
Alexander2015-09-24 14:09:21
Apache HTTP Server
Alexander, 2015-09-24 14:09:21

How to correctly specify file expiration?

Recommendations from Google.
www.mysite.ru/images/bulletL1.jpg (expiration not specified)
www.mysite.ru/images/bulletL2.jpg (expiration not specified)

Expires set Cache-Control "max-age=604800, public"
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300

I set an expiration date of one week.
After that, an error on the site 500. What's wrong? am i doing it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim E, 2015-09-24
@creativeworm

modules are not required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question