A
A
Airat Kadyrmaev2016-04-15 10:29:14
caching
Airat Kadyrmaev, 2016-04-15 10:29:14

How to deal with caching from the server?

The situation is as follows:
in the Yandex webmaster it says that the site is not optimized for mobile devices, and allegedly "The site cannot be recognized as optimized for mobile devices, because the main page could not be loaded for verification. Check the server settings and, if necessary, contact the hosting provider. "
https://yadi.sk/i/L_Jnf6cQqu9KH
wrote to the hosters, they said that everything is in order, my site also opens everywhere, then I wrote to Yandex, they answered this:
"We figured out what the reason is. The fact is that your server gives our robot information about the caching time Cache-Control:max-age=315360000 , i.e. almost infinity, so we store the old version of your site in the cache, which not available for verification.In order to improve the situation, you need to reduce the value of the Cache-Control:max-age= parameter to the real value."
Then I wrote to the hosters, they removed the cache completely.
What do you think about this? How to do it right? because the load will increase now, and besides, I look at Google, he recommends - Use the browser cache

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Chernykh, 2016-04-15
@sashkets

caching from 5 seconds to 2 minutes is considered normal. At least in our projects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question