What is the best way to prevent full encoding of a webpage in HTML (without PHP or any server side language) from caching?

I thought putting these two lines to prevent page caching, but this is not the case between the headers:

<meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> 

As already mentioned, on a server that does not support PHP (or any server language, well, it’s not), it has a cgi-bin folder that supports perl scripts, but I don’t know perl and don’t have time to participate in it .)

What else can I do to prevent page caching? It is cached in Firefox and IE (and not so much in Chrome or Safari.)

+1
source share
1 answer

Configure any web server you use to send the correct cache control headers. You cannot depend on the document itself .

+2
source

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


All Articles