Expires

Defines how long the response will stay valid.

Syntax

Response.Expires = dDate | tDate

Note

If there is a request, the browser will also determine the validity period for the page content. In case of a renewed request the browser first refers to its cache and initiates a new web server request only if the validity of the page has expired or the user enforces a refresh. Since this verification is effected by the client, you should be aware of differing time zones and inexact clocks. That is one reason to use Response.Expires as a recommendation to the client.

You can enter a date or a date time value. If you enter a blank value or the value -1, the page will expire immediately and will not be re-loaded by the browser. Pages not expired may not re-load through F5. Many browsers (including Internet Explorer and Firefox) will re-load a page if you press the relatively unknown key combination Ctrl+F5.

The default value is a blank date, as AFP documents are generally dynamic documents and differ depending on user and request. They set these properties only in pages that rarely change. Bear in mind that once you have entered a value you cannot renounce it, as the browser will not request that page again if the expiry date entered lies in the future.