Alessandra
Alessandra

Reputation: 11

Making sure a web page is not cached, across all browsers

You said you put these lines, but where and how do I put this in my html?

I used those below, but they didn't work in all browsers

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Upvotes: 1

Views: 1954

Answers (3)

Esteban K&#252;ber
Esteban K&#252;ber

Reputation: 36832

meta goes into the <head> of the document.

<html>
<head>
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Expires" content="0">
</head>
<body>
  <p>hi!</p>
</body>
</html>

Upvotes: 1

ЯegDwight
ЯegDwight

Reputation: 25229

Put them anywhere between <head> and </head>, but after the tag <meta http-equiv="Content-Type" ...> if there is one.

Upvotes: 1

Scott Vander Molen
Scott Vander Molen

Reputation: 6439

They go in between <head> and </head>.

Upvotes: 0

Related Questions