content can be cached longer, such as one months. If you are considering should only cache a few days, so that when you modify the file, users can quickly get to the new version, then you are wrong. If a file is cached by setting the expiration header (expires header), when you update it, the new user can immediately get to the latest version, while the old user can only see the old content until it expires on the browser side. So as long as you're
I. Overview
The idea of caching can be applied at all levels of software layering. It is an internal mechanism that is not perceptible to the outside world.
The database itself has a cache, and the persistence layer can also be cached. (For example: Hibernate, also divided into 1 levels and 2 cache)
The business layer can also have caching (but generally, this is a process domain and does not set a cache).
In reality, the server in the data sent to the browser, part of the data is not updated frequently, if you can cache this part of the data to the browser, will greatly reduce the data transferred, improve the performance of the application. With the expires policy, you can use the HTTPThe caching mechanism of the protocol definition caches the data in the
Java prohibits the browser from caching the source code. java prohibits the caching of the source code.
Java prohibits the browser from having cached source code
Import java. io. IOException; import javax. servlet. filter; import javax. servlet. filterChain; import javax. servlet. filterConfig; import javax. servlet. s
For dynamic files, such as index. asp? Id =... or index. aspx? Id =... believe in experiencedProgramAttackers know how to disable the browser from caching data.But for static files (CSS, JPG, GIF, and so on), where do we need to disable browsers from caching them?
The topic of this article is how to prevent caching,
Do a game, there are multiple pages, the user in the game end page click "Back" will return to the beginning of the game page, how to let him can not click Back or click Back not to the previous page, or do not allow the browser to generate the corresponding page history, server-side or JS solution can be, first thanked.
Reply content:
Do a game, there are multiple pages, the user in the game end page click "Back" will return to the beginning of t
As front-end developers, we do not seem to have much to do with our site or our application's caching mechanism, but these are parts of the performance that we are concerned about, and the site does not have any caching mechanisms, and our pages may become slow to download and render resources. But everyone knows to go to the front-end to solve the problem of slow page, and not to find the server side of th
There are many caching mechanisms on the web side, and I'm just learning and collating the browser-based HTTP caching mechanism to see how it works.One, the type of Web cache1.1 Database CacheWe may have heard of memcached, which is a database-level caching scheme. Database caching
Browser cache (Browser Caching) is a browser-side save data for fast read or avoid duplicate resource request optimization mechanism, effective cache use can avoid duplicate network requests and the browser quickly read local data, the overall acceleration of the page displa
Types of 1.web caches:(1) Caching of databasesWe may have heard of memcached (high-performance cache system), which is a database-level caching scheme, database caching is that when the relationship between Web applications is more complex, the database of many tables, if the frequent database query, it is easy to cause the database overwhelmed. In order to provi
1, the classification of the cache
2. Detailed browser caching mechanism
2.1 HTML META Tag control cache
2.2 HTTP header Information Control cache
2.2.1 Browser Request Process
2.2.2 Several important concepts explained
3. User behavior and caching
4, Refer:
Https://www.cnblogs.com/520y
Original address:http://www.renfei.org/blog/http-caching.htmlEach time you visit a webpage, the browser will usually download the required resources from the server, such as HTML documents, pictures, CSS, JavaScript, and even font files. Many of these files (examples) are rarely changed, if you have to re-download from the server every time, will unnecessarily increase the page loading time, but also to the server a certain amount of pressure. By reas
The browser cache has been used to describe only one approximate, deep principles can not be described, and finally in the front of the two interview process was asked to fall, in order to spite, access to some information to finally have a more in-depth understanding, nonsense not to say, hurry to look at the browser cache of those things, there are wrong places, Please do not hesitate to enlighten me.This
Reprinted from: http://web.jobbole.com/86957/
Browser caching mechanism, in fact, is mainly the HTTP protocol definition of the caching mechanism (such as: Expires; Cache-control, etc.). But there are also non-HTTP protocol-defined caching mechanisms, such as the use of HTML Meta tags, web developers can be in the HTML
Browser caching mechanism, in fact, is mainly the HTTP protocol definition of the caching mechanism (such as: Expires; Cache-control, etc.). But there are also non- HTTP protocol-defined caching mechanisms, such as the use of HTML Meta tags,Web developers can be in the HTML page The purpose of the above code is to tell
Some of the file data needs to be cached during the recent project, so we can sort out some information about the browser caching mechanism.
Summary:1. Expires Expiration Time2, Cache-control cache mechanism [MAX-AGE=300] cache time 300 means 5 minutes3, Last-modified last modified time corresponding to the request head has If-modified-since4, Etag Unique identifier generated by the server correspondi
Ajax cache is maintained by the browser, for a url,ajax sent to the server only on the first request with the server interaction information, after the request, Ajax no longer submit requests to the server, but directly from the cache to extract data.In some cases, we need to get updated data from the server each time. The idea is to make each request a different URL, without affecting the normal application: After the URL to add random content.e.g.
the need to pipe.
The purpose of disabling caching is that when you go to request a Web server, the server always gives the latest file to the browser without detecting whether the file has been updated. When he passes back to the browser, the browser IE puts the file (or part of it) locally and saves it.
Although thi
Browser caching mechanism (2)-Application cache
In the company project, some mobile version of the Web page just use the application cache, so by the way to write an article to summarize the application of cache content.
1. Introduction to App CacheThe application cache (application cache) is a set of caching mechanisms provided by HTML5, allowing W
Http://www.cnblogs.com/tzyy/p/4908165.htmlChapter Catalogue
Browser caching principles
Text version Description
A picture of the
Cache Related header fields
Request Cache Related header fields
Response Cache Related header fields
Entity Header cache related fields
Some Considerations for cache configuration
Before the project encountered a lot of
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.