Jan 27

Some times you need to tell the browser not to cache some pages in your web application.

To achieve this we can use META tags that instruct the browser how you would like the page cached. As is too often the case the meta tags required can vary between browsers. The “Pragma” meta seems the most widely supported at the moment:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

Using the following though will give you better browser coverage:

<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="0">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

written by objects \\ tags: , ,