In general, when the user requests the web server, the server will reply to the client. On the client, the browser takes the cache as a strategy that speeds up, that is, check the cache when the request is required.
<%
Response.buffer = true
'Under normal circumstances, when a user requests a web server, the server responds to the client. On the client, the browser takes the cache as a strategy that speeds up, that is, check the cache when the request is required.
'In the web program design, sometimes in order to prevent repeated submission or strict order, the user's data must be expired immediately after use, and when the user retreats, it cannot be used and cannot be used. Generally, Response.expires is written on the top of the page, followed by the expiration time, 0, -1 means an expiration immediately.
'ASP does not have multiple lines of annotations, and can only be annotated every row. Most of the starting comments can be more. For example, this 3 lines comments, these 3 lines of annotations below.
'Response.expires browser can cache the time length of the current page, in minutes.
Response.expires = -1
'Response.expiresabsolute browser cannot cache the date and time of the current page. It can be returned before it expires. If the time is not specified, the homepage expires at midnight on the same day; if the date is not specified, the specified time will expire that day.
Response.expiresabsolute = now () - 1
Response.expires = 0
'Response.cacheControl indicates whether the proxy server can cache ActiveServerPage. When the default is, its value is false. When setting its attribute to Public, the Proxy server can buffer the output generated by ASP.
'Cache-Control specifies the request and the cache mechanism that responds to. Set the cache-Control in the request message or response message does not modify the cache process during another message processing process.
'No-Cache indicates that requests or response messages cannot be cached
Response.cachecontrol = no-cache
'The meaning of ASP above 4 lines is: When we are operating the database, if we are allowed to retreat, and it happens to refresh the page, we will perform the operation again. It is undoubtedly that this is not what we want. Reliable, then you only need to add on the operation page.
%>