M
M
MdaUZH2018-03-04 19:11:44
Apache HTTP Server
MdaUZH, 2018-03-04 19:11:44

Why is the browser cache not working?

Good afternoon, there is a site on Bitrix, you need to enable the browser cache based on Google's recommendations.
As a result, in htaccess I insert:

<ifModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 5 seconds"
    ExpiresByType image/x-icon "access plus 1 month"
    ExpiresByType image/jpeg "access plus 4 weeks"
    ExpiresByType image/png "access plus 30 days"
    ExpiresByType image/gif "access plus 43829 minutes"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
    ExpiresByType text/css "access plus 604800 seconds"
    ExpiresByType text/javascript "access plus 604800 seconds"
    ExpiresByType application/javascript "access plus 604800 seconds"
    ExpiresByType application/x-javascript "access plus 604800 seconds"
    ExpiresByType text/html "access plus 43200 seconds"
    ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>

Result 0, what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2018-03-04
@megafax

Do you have nginx before apache? If there is, and it is he who processes the statics, then your actions are useless.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question