Summary of HTTP protocol and common methods used by headers in PHP, and Header summary. Summary of the HTTP protocol and common methods used by the Header in PHP. the header summary examples in this article summarize the HTTP protocol and common
BackgroundThe internet is awash with articles about restful APIs (for convenience, the "RESTful API" shorthand for "API" below), but there is no "universal" design standard: How to do authentication? What is the API format? Should your API include
Previous Article ASP. NET Performance Optimization to build a custom File Cache. We use OutputCache to allow requests to access the server's asp.net output cache. We have extended OutputCacheProvider, which is equivalent to accessing static
Let's take a look at this Bug!Add OutputCache settings to an. aspx file. The Code is as follows:Copy codeThe Code is as follows:
The preceding settings indicate that the cache is cached for 5 minutes and updated based on different query strings.
Description
1, the server caches the compressed files, re-accesses reduce the re-compression time, reduce CPU utilization.
2, by setting the client file cache time, reduce the number of re-requests, can be reduced by more than 85%.
3, image because
Copy CodeThe code is as follows:
Fix 404 Pages:
Header (' http/1.1 OK ');
Set 404 Header:
Header (' http/1.1 404 Not Found ');
Set Moved permanently header (Good for redrictions)
Use with location header
Header (' http/1.1 301 Moved permanently ');
I've been busy for half a month. All kinds of pressure, side of the development side of the Test side of the three-side project, while dealing with issues and development issues, people are divided into several. Today, we summarize the problems
Squishit is a component that easily compresses and merges CSS and JavaScript files. It also uses dotless to process CSS. Its dependent components are: Dependencies
IDVersion range
Yuicompressor. net(≥1.7.0.0)
Dotless(≥1.2.2.0)
Ajaxmin(≥4.46.44
1. Comparison between HTTP/1.0 and HTTP/1.1 RFC1945 defines HTTP/1.0 and RFC2616 defines HTTP/1.1. 1.1 Connection establishment HTTP/1.0 & nbsp; each request requires a new TCP connection, and the connection cannot be reused. HTTP/1.1 & nbsp; new
DescriptionAfter the server caches the compressed files, the re-accesses reduce the re-compression time and reduce the CPU usage. By setting the client file cache time, reduce the number of requests again, can be reduced by more than 85%. Picture
Common HTTP Status Codes
200 OK
301 moved permanently
302 found
304 not modified
307 temporary redirect
400 bad request
401 unauthorized
403 Forbidden
404 not found
410 gone
500 Internal Server Error
501 not
Successful status code:
200-the server returns the webpage successfully
304-not modified
Status Code of failure:
404-the requested webpage does not exist
503-the server is temporarily unavailable
500-Internal Server Error
The following is not very
Network Working Group R. fieldingrequest for comments: 2616 UC runtime: 2068 J. gettyscategory: Standards track Compaq/w3cj. mogulcompaqh. frystykw3c/mitl. scheduler. leachmicrosoftt. Berners-LeeW3C/mitjune 1999
Hypertext Transfer Protocol --
HTTP status code and descriptionWhen a user is on an anti-Internet Information Service (IIS) server, the IIS server automatically returns a digital code indicating the status of the request in response to the request, provide status information
Document directory
What is HTTP headers?
Example
How to view HTTP headers
HTTP request Structure
Post: send data to the server
Head: receive header information
HTTP Response Structure
Host
User-Agent
Accept-Language
Accept-Encoding
Copyright:Based on the spirit of sharing, this article can be reproduced to benefit more test peers. Please retain this copyright statement upon reprinting and ensure the integrity of the article, but shall not be used for any commercial or other
ArticleDirectory
Code
Introduction
Recently, the public has been strongly interested in the rest-style application architecture, indicating that the elegant design of the Web has begun to attract attention. Now, we gradually
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.