Do browsers always use a cached version of a page with a .html extension?

I have a web page written in pure HTML (with the extension .html). Whenever I edit it and click Refresh in my browser, the page does not refresh. However, if I change the extension to .php, this problem does not occur. Can someone explain to me what is going on?

+3
source share
2 answers

Try pressing CTRL + Refresh or CTRL + F5. This should greatly update and reload new content. This only applies to browser caching .

, - . http://www.i18nguy.com/markup/metatags.html

, , .

, IIS Expires.

+3

- , php:

Cache-Control:  no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma:         no-cache

. , .

+1

Source: https://habr.com/ru/post/1753010/


All Articles