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)
Mysql supports 3 types of lock structures Table-l...
Table of contents Project Introduction: Project D...
Table of contents 1. Introduction 2. Deployment E...
need: In background management, there are often d...
In CSS files, we often see some font names become...
1.17.9 More delicious, really Nginx download addr...
Composition inheritance Combination inheritance i...
1. MHA By monitoring the master node, automatic ...
Preface In the application of database, programme...
There are two types of scheduled tasks in Linux s...
question After the company migrated the server, t...
Table of contents 1. What are microtasks? 2. What...
Table of contents Why do we need a material libra...
Docker runs multiple Springboot First: Port mappi...
Preface Since I needed to install Zookeeper durin...