Response.Expires Help

Results 1 to 7 of 7

Thread: Response.Expires Help

  1. #1
    Kuli Guest

    Default Response.Expires Help

    From reading a book, I understood that if I used:<BR>Response.Expires = 1<BR>The page would expire after 1 minute and if a user revisited the page after this time (e.g. by clicking the &#039back&#039 button) the page would be reloaded rather that displayed from the browsers cache.<BR>This does not seem to be the case, any ideas?

  2. #2
    Chrace Guest

    Default RE: Response.Expires Help

    Wouldn&#039t that be 1/1/1900 + 1 second as expire date?<BR><BR>I think you need to set it as Response.write(FormateDateTime(Now + 1000, 4)) or something.<BR><BR>Test that, can&#039t remember if 4 is long format and if Now uses milliseconds. :)

  3. #3
    Kuli Guest

    Default RE: Response.Expires Help

    Thanks but you are thinking of the Response.ExpiresAbsolute method.

  4. #4
    Chrace Guest

    Default RE: Response.Expires Help

    Oups, you&#039re right.<BR><BR> - ASP - Response - Response.Expires:<BR><BR><BR>Sorry, if the docs aren&#039t true anymore I don&#039t know. Browser settings set to always check for new? *scratch*

  5. #5
    Join Date
    Dec 1969

    Default you have it right but...

    there are all kinds of problems with this method. You can see a good example at:<BR><BR><BR>Although that talks about "disabling" the BACK button, a lot in there applies to your case also.

  6. #6
    Kuli Guest

    Default Thanks

    Cheers, I&#039ve discovered that Response.Expires doesn&#039t work if the &#039Back&#039 button is used, only if the page is re-accessed another way.

  7. #7
    Kuli Guest

    Default Just what I was looking for

    Thanks, the articles are great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts