Today, when developing, I encountered a method where the customer requested that the page not be cached. After checking, I found the following methods to prevent the page from being cached: html Copy code The code is as follows:<HEAD> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="0"> </HEAD> asp tutorial practice Copy code The code is as follows:Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "No-Cache" PHP tutorial practice Copy code The code is as follows:<?php header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d MYH:i:s') . 'GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); ?> There is also a simpler method, which is used by everyone when ajax? mt = random data |
>>: Design sharing of the download page of the Pengyou.com mobile client (picture and text)
This article shares the tutorial of MySql install...
jQuery realizes the effect of theater seat select...
1. The Importance of Indexes Indexes are used to ...
Table of contents Overview Global hook function R...
In CSS files, we often see some font names become...
Table of contents Introduction to frm files and i...
This article example shares the specific code of ...
I am planning to build my own website, so I took ...
Database Table A: CREATE TABLE task_desc_tab ( id...
MySQL Performance Optimization MySQL is widely us...
This article shares the specific code of js to re...
Table of contents Create a new html file: Create ...
Table of contents Overall Effect Listen for conta...
Table of contents 1. Background 2. Prerequisites ...
The following code introduces the installation me...