Question about updating cached files. All the style files on my server are cached for 7 days (according to the recommendations of Google Page Insight) according to the rules of nginx (Expires), and in the Cache-Control meta tag there are no-store, must-revalidate rules no-store, must-revalidate . But at the same time, when I make edits to some .css file, these edits are not displayed. In theory, the must-revalidate should check the date of the document change and, in case of change, give the user an updated, not a cached file. Or is my submission wrong?

  • I suspect wrong, because otherwise caching does not make sense at all. (True, if not mistaken, I myself do not know well) - andreymal
  • @andreymal but how then to make changes? Edit the block, which all users will eventually break. So what? Write them "oh, sorry, wait a week until the cache is cleared"? - JamesJGoodwin
  • Usually, the link to the file is changed in some way - andreymal
  • Caching is generally a browser involved. And he may have his own opinion on what and when to check. Google's tips are designed for files that change the address with changes, you need to think with your head, and not blindly believe your uncle - Alexey Ten

0