Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts

    server caching pages

    I am programming on a new web server.
    Soemthing strange is happening -- the first time I uploaded the files there were some errors - I fixed but it is still showing me the old errors and won't show me anything new. (even if I put response.write "hello" I don't see it)

    it is not my browser causing this -- it is only happening from that web server.

    Any Ideas what could be causing this and what I can do to fix?

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Hello there.

    Sorry, but I am going to ask a stupid question. When you updated the files, did you upload them again to the server? If you have, then surely you have have been prompted to confirm that you wanted to override the existing files on the server. Make sure that you answer yes.

    Also. You should clear all the browser cache.

    Also. you should include meta information about when the page should expire. Here is an example.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
    <meta http-equiv="PRAGMA" content="NO-CACHE" />
    <meta name="GOOGLEBOT" content="NOARCHIVE" />
    <meta http-equiv="EXPIRES" content="Mon, 26 Jul 1997 05:00:00 GMT" />
    <title>Page Title here</title>
    </head>
    <body>
    <%
    // your asp code here.
    %>
    </body>
    </html>
    Good luck.
    Ess

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts
    yes i checked that and it's not the browser caching but the server as if I upload to another server they are ok

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    The sunny side of the Alps
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are 2 setting in IIS that you can use to fine-tune caching policy on the server:
    • IIS > Web sites > Properties > Cache options (for ASP caching settings)
    • IIS > Web sites > Your Virtual Directory > Properties > HTTP Headers > Enable content expiration


    Hope this helps.


  •  

    Posting Permissions

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