Reprint https://blog.csdn.net/hellogmm/article/details/8544815
Here are some excerpts from me
add code in header
response.setHeader("Refresh", "5;XXX.jsp");
Jump to the specified page after timing 5 seconds
response.setIntHeader("Refresh", 5);
Automatically refresh after five seconds
As the name suggests, http-equiv is equivalent to the file header function of http . It can send back some useful information to the browser to help display the content of the web page correctly and accurately. The corresponding attribute value is content , and the content in content is actually Variable values for each parameter.
<meta http-equiv="pragma" content="no-cache">
Pragma (cache mode )
Description: Prevents browsers from accessing page content from the local computer's cache.
用法:<meta http-equiv="Pragma" content="no-cache">
Note: With this setting, visitors will not be able to browse offline.
It is used to set to prohibit the browser from recalling the page content from the cache of the local machine. Once it is set, it cannot be recalled from the cache once it leaves the web page ;
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="Refresh" content="n;url">Similar to previous
<meta http-equiv="keywords"content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
name attribute
1. <meta name="Generator" contect=""> is used to describe generation tools (such as Microsoft FrontPage 4.0 ), etc.;
2. <meta name="KEYWords" contect=""> Describe the keywords of your web page to search engines;
3. <meta name="DEscription" contect=""> tells search engines the main content of your site;
4. <meta name="Author" contect=" your name "> tells the search engine the author of the production of your site;
5、<meta name="Robots" contect="all|none|index|noindex|follow|nofollow">
The properties are described as follows:
Set to all : the file will be retrieved, and the links on the page can be queried;
Set to none : the file will not be retrieved, and the links on the page cannot be queried;
Set to index : the file will be retrieved;
Set to follow : the links on the page can be queried;
Set to noindex : the file will not be retrieved, but the links on the page can be queried;
Set to nofollow : the file will not be retrieved, the links on the page can be queried.