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)
Table of contents introduce Object attributes in ...
Vulnerability Introduction The SigRed vulnerabili...
This article shares the specific code for the WeC...
This article example shares the specific code of ...
1. Download jdk download address我下載的是jdk-8u221-li...
Table of contents 1. Container lifecycle manageme...
Table of contents Problem description: Solution 1...
Vue implements the palace grid rotation lottery (...
Table of contents View Disk Usage Disk Cleanup (D...
Table of contents The pitfalls Filling method Wha...
Preface This article mainly introduces the releva...
I have recently learned web development front-end...
This article records the installation and configu...
I always feel that translate and transition are v...
Before hiding: After hiding: CSS: Copy code The co...