K
K
Kak_B_CTapou_Cka3ke2020-04-27 22:17:44
htaccess
Kak_B_CTapou_Cka3ke, 2020-04-27 22:17:44

Why doesn't the Wordpress cache lifetime change?

PageSpeed ​​Insights stubbornly swears at the efficient use of the cache for my .jpg .png images, although there are lines in .htaccess:

<IfModule mod_expires.c>
ExpiresActive On 
ExpiresDefault "access plus 6 month"
ExpiresByType text/css "access plus 6 month" 
ExpiresByType text/plain "access plus 6 month"
ExpiresByType image/gif "access plus 6 month"
ExpiresByType image/png "access plus 6 month" 
ExpiresByType image/jpeg "access plus 6 month" 
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType application/x-javascript "access plus 6 month"
ExpiresByType application/javascript "access plus 6 month"
ExpiresByType application/x-icon "access plus 6 month" 
ExpiresByType text/html "access plus 0 seconds"
</IfModule>


also added:
<filesMatch ".(jpg|jpeg|png|gif|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>


In PageSpeed ​​Insights, the lifetime is still 7 days.
There seems to be nothing in the source code regarding caching.

Where to drop, what to try?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EvgenyMorozov, 2020-04-28
@EvgenyMorozov

Restart the Apache (httpd) process.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question