Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 31st, 2005, 11:41 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default explanation

can someone explain what this line does fully?

<% Response.Expires = 0 %>

Picco


__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old January 31st, 2005, 01:15 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default


The Expires property specifies the duration of time before a page that is cached on a browser expires. If the user returns to the same page before it expires, the cached version is displayed.

Use -1 to specify immediate expiration

When your .asp file calls Response.Expires, IIS creates an HTTP header, indicating the time on the server. If the system time on the client is earlier than the system time on the server (because of either the client or server having an inaccurate time setting, or time-zone differences), setting the parameter to 0 does not have the effect of expiring the page immediately. You can use the Response.ExpiresAbsolute property to immediately expire a page. In addition, you can use a negative number for the Expires property to expire the response immediately


http://msdn.microsoft.com/library/de...1dd4dcbdc0.asp


Om Prakash
 
Old January 31st, 2005, 01:18 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

<% Response.ExpiresAbsolute %>

or

<% Response.ExpiresAbsolute = 0 %>


 
Old February 2nd, 2005, 12:14 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

"ExpiresAbsolute" allows us to set a specific date/time when the page needs to be removed from cache ...

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
code explanation Amitava Deewan Access VBA 2 August 8th, 2005 03:26 PM
i need explanation ... amahja56 C++ Programming 2 October 28th, 2004 05:01 PM
Need Explanation Plz ! augustine Biztalk 0 July 11th, 2004 07:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.