If you send a request to your server to display a webpage on your website (for example, when a user accesses your webpage through a browser or crawls the webpage on googlebot, your server returns the HTTP status code to respond to the request.
This
Header ('HTTP/1.1 200 OK ');
// Set a 404 header:Header ('HTTP/1.1 404 Not found ');
// Set the address to be permanently redirectedHeader ('HTTP/1.1 301 moved permanently ');
// Go to a new addressHeader ('location: http://www.example.org /');
//
1. http request
Basic HTTP request format
========================================================== ==============
request line
Request Header (parameter header)
blank line
[] Request Entity (get does not have Post)
===========================
100 continue: the initial request has been accepted, and the customer should continue to send the rest of the request.
101 switching protocols: the server converts a client-compliant request to another protocol.
200 OK: Everything is normal. The
cmdtelnet localhost 8080get/aa/1.html http/1.1host: To access the page to the IE installation HttpWatch can see the HTTP protocol what is the HTTP protocol: Hypertext Transfer Protocol, he is tcp/ An application-layer protocol for the IP protocol
In the Local development environment (NGINX), often encountered this situation: debugging JS when the browser is always not loaded with the modified JS content, and directly spit out the last cached code.I have tried the
OverviewThe Web cache can automatically save HTTP devices for common document replicas. When a Web request arrives at the cache, the document is extracted from the local storage device instead of the original server if there is a locally cached copy.
Explore the usage of headers in php. Header () isusedtosendrawHTTPheaders. SeetheHTTP1.1specificationformoreinformationonHTTPheaders. Example 1: Copy the code as follows :? PHPHeader (Location: http:
Header()Is used to send raw HTTPHeaders. See the
Brief introduction to HTTP message header webpage cache control and common header commands. The Cache of web pages is controlled by "cache-control" in the HTTP message header. common values include private, no-Cache, max-age, and must-revalidate,
This article provides a detailed analysis of HTTP message header webpage cache control and common header commands, for more information, see "Cache-control" in the HTTP message header, common values include private, no-cache, max-age, and
PHP uses the header function to set the HTTP header to parse the header. Copy the code as follows: define the encoding header (Content-Type: texthtml; charsetutf-8); Atomheader (Content-type: applicationatom + xml); CSSheader (Conten as follows:
Detailed description of some common headers. Common header commands include HTTP-Version, Status, and Reason-Phrase ).
Common header commandsThe header is divided into three parts:The first part is the HTTP Version );
The second part is the Status
Briefly review, the current system is the WCF three-tier C/s plug-in system. The server side is a WCF program hosted in IIS, where my configuration is designed to be long connected, the client supports multi-threading, and a volatile instance object.
Defining the Encoding
Copy CodeThe code is as follows: Header (' content-type:text/html;charset=utf-8 ');
Atom
Copy CodeThe code is as follows: Header (' Content-type:application/atom+xml ');
Css
Copy CodeThe code is as follows: Header (' content-
Solution: PHP backend images cannot be cached by CDN. Solution: PHP backend images cannot be cached by CDN.
Today, I found that there is a problem online. an online image domain name has been added to the CDN cache on the front end. if it is
Usage of Cache-control of header function parameters in php the Cache of web pages is controlled by "Cache-control" in the HTTP message header, common values include private, no-cache, max-age, and must-revalidate. the default value is private. The
The PHPheader function provides an example of setting an http packet header ,. PHPheader function sets http packet header example details, define the encoding header (Content-Type: texthtml; charsetutf-8); Atomheader (Content-type: applicationatom +
This status code provides information about the request status, telling Googlebot about your website and the requested webpage.
In the practical application of website construction, many small mistakes may occur, just as mysql was not optimized at
When php returns an HTTP status code for the interview, many people ask me this and record it ??? 200 is OK ,?? 404 indicates that the. HTTP protocol status code is not found on the page. when calling a function, you only need to assign $ num to a
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.