Meta tags

<meta http-equiv="parameter" content="parameter variable value">

1、<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

        content-Type (display character set setting), Description: Set the character set used by the page.

2、<meta http-equiv="Cache-Control" content="no-cache"/>

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

        Cache-Control specifies the caching mechanism that requests and responses follow. Setting Cache-Control in a request message or a response message does not modify the caching process in another message process. The cache instructions in 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 meaning of the instructions in each message is as follows:
Public indicates that the response can be cached by any buffer area.
Private indicates that the whole or part of the response message for a single user cannot be processed by the shared cache. This allows the server to describe only part of the response message when the user is invalid for other users' requests
no-cache indicates that the request or response message cannot be cached
no-store is used to prevent important information from being published inadvertently. Sending in the request message will make the request and response messages not use the cache.
max-age indicates that the client can receive responses with a lifetime not greater than the specified time (in seconds)
min-fresh indicates that the client can receive responses with a response time less than the current time plus the specified time
max-stale indicates that the client can receive more than Response message during timeout. If you specify a value for max-stale messages, the client can receive response messages that exceed the value specified in the timeout period.

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

        Set the expiration time of the page

4、<meta http-equiv="Pragma" content="no-cache"/>

        It is used to set to prohibit the browser from recalling the page content from the cache of the local machine. After setting, once the webpage is left, it cannot be recalled from the cache

5、<meta http-equiv="Refresh" content="2;URL=http://www.baidu.com/">

        Refresh (refresh) automatically refresh and point to the new page.

6、<meta http-equiv="Cache-Control" content="no-store"/>

        Force the cache not to keep any copies under any circumstances

7、<meta http-equiv="Pics-label" contect=""> 

        Pics-label (web page rating)

8、<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">

        keywords for search engines

<meta name="viewport" content="width=device-width, height=device-height,

initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

        1. width - the width of the viewport

        2. height - the height of the viewport

        3. initial-scale - the initial scaling ratio

        4. minimum-scale - the minimum scale the user is allowed to zoom to

        5. maximum-scale - the maximum scale that the user is allowed to zoom to

        6. user-scalable - whether the user can scale manually

<meta content="email=no" name="format-detection">

        When the device is browsing the web page, the phone function is not enabled for numbers (different devices have different interpretations, ittouch clicks a number to save a contact, and an iphone makes a call), and ignores the number in the page to be recognized as a phone number. If you need to enable the phone function, just set telephone=yes. The specific calling format can be written as <a href=”13888888888″>Call Me</a>. If there are google maps, iTunes and youtube links on the page, they will be displayed on ios Open the corresponding program component on the device.

<meta content="yes" name="apple-mobile-web-app-capable">

        The website opens support for the web app program

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

        1. The color of the status bar (the top bar of the screen) in the web app application;

        2. The default value is default (white), which can be set as black (black) and black-translucent (gray translucent).

        3. If the value is "black-translucent", it will occupy the px position of the page and float on the top of the page (it will cover the page height of 20px – the Retina screen of iphone4 and itouch4 is 40px )

        

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325249820&siteId=291194637