ASP ExpiresAbsolute Property


❮ Référence complète de l'objet de réponse

La propriété ExpiresAbsolute définit une date et une heure auxquelles une page mise en cache sur un navigateur expirera. Si un utilisateur revient sur la même page avant cette date/heure, la version en cache est affichée.


Syntaxe

response.ExpiresAbsolute[=[date][time]]

Parameter Description
date Specifies the date on which the page will expire.

If this parameter is not specified, the page will expire at the specified time on the day that the script is run.

time Specifies the time at which the page will expire.

If this parameter is not specified, the page will expire at midnight of the specified day.


Exemples

Le code suivant indique que la page expirera à 16h00 le 11 octobre 2012 :

<%response.ExpiresAbsolute=#October 11,2012 16:00:00#%>

❮ Référence complète de l'objet de réponse