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
20135 record 1: PHPPHP: Stomp? (Zheng yu Note 1, this time-out setting is unacceptable in the production environment. Generally 2 ~ 3 seconds timeout .) PHP: Stomp? Before an exception is thrown, the default number of attempts to connect to
InHeader ("Cache-control: private"); the webpage Cache is controlled by the PHP Cache controller in the HTTP message header, common values include private, no-cache, max-age, and must-revalidate. The default value is private. The function of browser
This article provides a detailed analysis of PHP and browser cache. For more information, see the various optimization solutions on the server.
Client CacheTo be precise, it is the browser cache mechanism.
In fact, each browser has a cache policy,
Normally, the browser caches the page. In this case, you can access the page just after exiting. For example, you can access the page just cached after exiting, in some cases, this is not safe enough. The solution to the problem is as
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,
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
Prerequisites:
The cache technology is very important in website applications. It has a lot to do with reducing the server request pressure and adding blocks to the user's browsing speed,
Someone asked me about the browser cache principle in my
The phpheader () function sets the page Cache. The header () function is widely used in php. I will introduce some methods to implement page cache using it. However, before using the header, you must note that no output can be made before it,
We often optimize cache settings on servers, but we seldom notice thatClient CacheTo be precise, it is the browser cache mechanism.In fact, each browser has a cache policy, which temporarily caches each browsed file in a special folder. When you
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.