Introduction to Response.setheader parameters and usage _jsp programming

Source: Internet
Author: User
Tags current time microsoft frontpage
Meta is a response header message that is used to simulate an HTTP protocol in an HTML document. META tags for 1, <meta name= "generator" contect= "> to describe the build tools (such as Microsoft FrontPage 4.0);
2, <meta name= "KEYWords" contect= "" > to the search engine to explain the keywords of your web page;
3, <meta name= "DEscription" contect= "" > Tell the search engine your site's main content;
4, <meta name= "Author" contect= "Your Name" > tell the search engine to make the author of your site;
5, <meta name= "Robots" contect= "All|none|index|noindex|follow|nofollow" >
The properties are described below:
Set to all: The file will be retrieved and the link on the page can be queried;
Set to None: The file will not be retrieved and the link on the page cannot be queried;
Set to index: file will be retrieved;
Set to follow: the link on the page can be queried;
Set to NOINDEX: The file will not be retrieved, but the link on the page can be queried;
Set to Nofollow: The file will not be retrieved and the link on the page can be queried.
Http-equiv Property
1, <meta http-equiv= "Content-type" contect= "text/html" charset=gb_2312-80 "> and <meta http-equiv=" Content-language "contect=" ZH-CN ">" to explain the text and language used to make the homepage;
such as English is iso-8859-1 character set, there are BIG5, Utf-8, Shift-jis, Euc, Koi8-2 and other character sets;
2, <meta http-equiv= "Refresh" contect= "n;url=http://yourlink/" > Time to make the Web page in the specified times N, jump to the page http://yourlink/;
3, <meta http-equiv= "Expires" contect= "mon,12 May 2001 00:20:00 GMT" > can be used to set the expiration time of the Web page, once expired must be called back to the server. It is important to note that the GMT time format must be used;
4, <meta http-equiv= "Pragma" contect= "No-cache" > is used to set the browser from the local computer cache to access the content of the page, set once away from the Web page can not be removed from the cache;
5, <meta http-equiv= "Set-cookie" contect= "mon,12 May 2001 00:20:00 GMT" >cookie set, if the page expires, save the cookie will be deleted. Attention must also be paid to the use of GMT time format;
6, <meta http-equiv= "Pics-label" contect= "> Web rating, there is a content setting in Internet Options for IE to prevent browsing of restricted sites, And the limit level of the website is set by the meta attribute;
7, <meta http-equiv= "Windows-target" contect= "_top" > Mandatory page in the current window with a separate page display, you can prevent their own web page by others as a frame page call;
8, <meta http-equiv= "Page-enter" contect= "Revealtrans (duration=10,transtion=)" > and <meta http-equiv= " Page-exit "contect=" Revealtrans (duration=20,transtion=6) > sets the special effects of entering and leaving the page, which is "format/page Transitions" in FrontPage. However, the added page can not be a frame page
Cache-control header Field
CACHE-CONTROL Specifies the caching mechanism that the request and response follow. Setting Cache-control in a request message or in a response message does not modify the caching process during another message handling process. The cached instructions at request include No-cache, No-store, Max-age, Max-stale, Min-fresh, only-if-cached, and the instructions in the response message include public, private, No-cache, No-store, No-transform, Must-revalidate, Proxy-revalidate, Max-age. The instructions in each message have the following meanings:
Public indicates that the response can be cached by any buffer.
Private indicates that the entire or partial response message for a single user cannot be handled by the shared cache. This allows the server to simply describe a partial response message from the user, which is not valid for other users ' requests.
No-cache indicates that a request or response message cannot be cached
No-store is used to prevent important information from being inadvertently released. Sending in a request message will not use caching for both request and response messages.
Max-age indicates that the client can receive a response that is not longer than the specified time in seconds.
Min-fresh indicates that the client can receive response times that are less than the current time plus a specified time.
Max-stale indicates that the client can receive response messages that exceed the timeout period. If you specify a value for the Max-stale message, the client can receive a response message that exceeds the specified value for the timeout period.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.