1, ETag and expires the client-side HTTP Request header and server-side HTTP reponse Header working principle.
2, static under the Apache, Lighttpd and Nginx ETag and expires configuration
3. ETag and expires processing in non-real-time
1. How the Client-side Http Request Header and Server-side Http Reponse Header work in Etag and Expires.
2. Static configuration of Etag and Expires in Apache, Lighttpd, and Nginx
3. Etag and Expires processing on dynamic pages with non-real-time
One of the most important factors in front-end optimization is to set a long expiration time. For example, Yahoo expires is set to 10 years, and pageSpeed is recommended for more than one month. The purpose of setting expires is to prevent
Once the Web project is deployed, the pictures, CSS, and JS in the project are rarely changed, so if the components are cached in the browser client instead of being fetched from the server, the site's visitors will be heavily relieved of the server'
Expires property value--page cache expiration
expires for Web page cache expiration expires appears in the HTTP-EQUIV attribute, using the content property to indicate the expiration time of the page cache reference URL: http://
There are many kinds of caches: Server cache, third-party cache, browser cache, and so on. The browser cache is the least expensive, because the browser cache relies on the client and consumes little server-side resources.Making the browser cache
One: Nginx configure expires cache to boost website loadFor pictures of the website, especially news stations, once published, the changes may be very small. We want to be able to cache the image cached on the user's browser for a long time after
Both Expires and max-age can be used to specify the document expiration time, but there are some nuances between the two. 1. Expires has been defined in HTTP/1.0. Cache-Control: max-age is defined only in HTTP/1.1. For backward compatibility, it is
The apache prompts that the max-age or expires solution is not set. max-ageexpires
You should know that you only need to Set max-age or expires. The following method is used to set apache:
Generate to enable
The Code is as follows:LoadModule headers_
Ajax pre-processing enables asynchronous requests to jump to the logon page when the session expires, ajaxsession
In the first blog, mark zhq [0].
Problem description: On the user page, when the session expires or all sessions are logged out, 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.