<meta http-equiv= "" content= "> Detailed

Source: Internet
Author: User

HTTP-EQUIV, equivalent to the file header of HTTP, which can send back some useful information to the browser,

To help correct and accurately display the content of the Web page, the corresponding property value for Content,content is actually the variable value of each parameter.

One

The Http-equiv property syntax format for meta tags is:

1.<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8"/>

Content-type (Displays the settings of the character set)
Description: Sets the character set used by the page.
Usage:

http-equiv="Content-type" content= "text/html; charset=gb2312 ">

2.<meta http-equiv= "Cache-control" content= "No-cache"/>

Clear the cache (again visit this site to re-download!) )

Cache-control header Field
CACHE-CONTROL Specifies the caching mechanism that requests and responses follow. Setting Cache-control in a request message or response message does not modify the caching process in another message processing process. The cache directives for the 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 shared with the cache. This allows the server to simply describe a partial response message for the user, which is not valid for another user's request
No-cache indicates that a request or response message cannot be cached
No-store is used to prevent the inadvertent release of important information. Sending in the request message will make the request and response messages do not use the cache.
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 a response message that exceeds 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.

3.<meta http-equiv= "Expires" content= "0"/>

Set the expiration time for a webpage

4.<meta http-equiv= "Pragma" content= "No-cache"/>

is used to set the browser from the local computer cache to access the content of the page, once set to leave the Web page can not be recalled from the cache
Usage:

5. http-equiv="Refresh" content="2;url=http://www.net.cn/" >

Refresh (refreshed)
Description: Automatically refreshes and points to the new page.

6.<meta http-equiv= "Cache-control" content= "No-store"/>

There is no need to keep any replicas in the event of a forced mitigation

7.<meta http-equiv= "pics-label" contect= "">

Pics-label (Web level rating)

8.<meta http-equiv= "keywords" content="Keyword1,keyword2,keyword3">

Keywords that are used by search engines

<meta http-equiv= "" content= "> Detailed

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.