Php header Functions

Source: Internet
Author: User

The Cache of web pages is controlled by "Cache-control" in the HTTP message header, common values include private, no-cache,-age, must-1-cache, must --- control:-age = 52---3-revalidate, and -- 4-control -: fri, 31 Dec 1999 16:00:00 = no-=-1-1.1 the specified CacheControl = no-1.0 server cannot use the Cache-1.0 server. IE uses Pragma: no -: internet Explorer does not cache this response. Note: Pragma: no-cache prevents caching only when used in secure connections. If it is used on a non-secure page, the processing method is as follows: --- ("HTTP/1.1 404 (" HTTP/1.1 404 ("Location: http :(" HTTP/1.1 302 ("Location: http :(" Content-type: text/plain '); ('content-Disposition: attachment; filename = "weizhifeng. ('weizhifeng. /1.1 <? ('HTTP/1.1 200 OK '('HTTP/1.1 404 Not found' ('HTTP/1.1 301 Moved Permanently'); ('location: http://www.example.org/'('refresh: 10; url = http://www.example.org/'you will be redirected in 10 seconds '('x-Powered-By: PHP/4.4.0' ('x-Powered-: brain/0.6b '('content-language: en' = ()-60; ('Last-Modified :'. ('d, d m y h: I: s ',). 'gmt' ('HTTP/1.1 304 Not modified'); ('content-Length: 8080' ('content-Type: applica Tion/octet-stream '('content-Disposition: attachment; filename = "example.zip"' ('content-Transfer-Encoding: binary'('example.zip '('cache-Control: no-Cache, no-store, max-age = 0, must-revalidate '('expires: Mon, 26 Jul 1997 05:00:00 gmt'); ('pragma: no-cache '('content-Type: text/html; charset = iso-8859-1' ('content-Type: text/html; charset = UTF-8 '('content-Type: text/plain '); ('content-Type: image/jpeg '); ('Content-Type: application/zip'); ('content-Type: application/pdf '); ('content-Type: audio/mpeg '); ('content-Type: application/x-shockwave-flash'); ('HTTP/1.1 401 unauthorized' ('www-Authenticate: basic realm = "Top Secret" ''text that will be displayed if the user hits cancel or ''enters wrong login data'?>

 

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.