original articles, reproduced please specify: reproduced from the electric Shang Sharong ec-shalom.com, specialized in electric business.The concept of caching has not been clear, resulting in the use of PHP write cache is also very not
Symfony2 Framework Learning Notes HTTP cache usage details, SYMFONY2 study notes
This example describes the Symfony2 framework HTTP cache usage. Share to everyone for your reference, as follows:
The nature of rich Web applications means their
The Cache header does not work & lt; metahttp-equiv = & quot; Cache-Control & quot; content = & quot; max-age = 7200 & quot;/& gt; if you have any questions, please add this sentence to the html page. I don't know why. & lt; the meta cache header
This example describes the Symfony2 framework HTTP cache usage. Share to everyone for your reference, specific as follows:
The nature of rich Web applications means their dynamics. No matter how efficient your application is, there is always a lot
1. About HTTP MessagesSee: http://www.runoob.com/http/http-messages.htmlThe request header in an HTTP message is the information the browser wants to tell the server, and the response header is the information the server wants to tell the client.
The role of Refresh_pattern:Used to determine how long a page stays in the cache after it enters the cache.
Refresh_pattern only works on a page where the backend does not have a expires expiration, such as a forum page, and does not work on pages
expires is a Web server response message header field that, in response to an HTTP request, tells the browser that the browser can cache data directly from the browser before the expiration time, without having to request it again.
Cache-control
The webpage cache is controlled by the cache-control in the HTTP message header. common values include private, no-cache, Max-age, must-revalidate, etc. The default value is private http://www.jb51.net/article/34017.htm.
The function of browser
The Cache-control of the HTTP protocol specifies the caching mechanism that requests and responses follow.Setting Cache-control in a request message or response message does not affect the caching process in another message processing process.The
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.