W
W
Worddoc2017-06-13 16:02:56
Browsers
Worddoc, 2017-06-13 16:02:56

Why doesn't htaccess set cache timeout?

Hello. There is a site www.alexeydev.com
A site on WP and the problem is that I registered the cache storage time in htaccess

<ifModule mod_headers.c>
  <FilesMatch "\.(html|htm|php|js|jpg|png|gif|ico|jpeg|css|woff2|eot|ttf|woff|svg|otf)$">
  	Header set Cache-Control "max-age=900"
  </FilesMatch>
</IfModule>

But when I look at the headlines, there is some kind of default figure:
f0e1306cada54d8c8cae613c5e2e4976.PNG
What could be the problem?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-06-13
@Worddoc

ifModule mod_headers.c

Maybe there is no module? And as a result, nothing works, as you asked.
B 1 more point, you have NGIX on the server, which means that htaccess may not affect anything at all. Although there are configurations where it works, in general htaccess is a file for the Apache server, not NGIX. So I think you are here

A
Axian Ltd., 2017-06-13
@AxianLTD

Когда 604800 истечет, тогда и проверяйте ;-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question