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)
Configure Git environment in Docker At work, I en...
Using mock.js in Vue project Development tool sel...
1. Image formats supported on the WEB: GIF: can s...
Without going into details, let's go straight...
Below are some common parameters of /etc/my.cnf o...
In the Linux system, in addition to various accou...
Table of contents Preface Error Object throw try…...
Table of contents 1. child_process 2. Command exe...
question When I was writing a project function to...
Knowledge point 1: Set the base URL of the web pa...
A root routing component (the root routing compon...
Docker official documentation: https://docs.docke...
This article mainly introduces the analysis of th...
First download the compressed version of mysql, t...
1. Go to the official website to download the ins...