« Previous Next »

Thread: IIS 5 cache weirdness

Last post 03-07-2007 11:54 PM by qbernard. 24 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (25 items) < Previous 1 2

Sort Posts:

  • 10-09-2006, 8:33 AM In reply to

    • kirigoe
    • Top 500 Contributor
    • Joined on 09-29-2006, 7:53 AM
    • Posts 14

    Re: IIS 5 cache weirdness

    Bernard:

    So you mean even you updated test.html, it still shows the old content?

    even after you change to test. 444444444444 ?   with the last modfied date matching your new file modified time?


    it shows the old file content and old modified date until after a few minutes when the new data show up. this is three requests after eachother, first one with no changes, second after changing the file, and third request after the new file is actually being served. i still don't see any weird things going on there.

     

    started....
    WWWConnect::Connect("ut.xxx.se","80")\n
    IP = "172.20.50.40:80"\n
    source port: 2824\r\n
    REQUEST: **************\n
    GET /webkit/update_of_70/offer/test.html HTTP/1.1\r\n
    Host: ut.xxx.se\r\n
    Accept: */*\r\n
    \r\n
    RESPONSE: **************\n
    HTTP/1.1 200 OK\r\n
    Server: Microsoft-IIS/5.0\r\n
    X-Powered-By: ASP.NET\r\n
    Cache-Control: no-cache\r\n
    Date: Mon, 09 Oct 2006 12:26:15 GMT\r\n
    Content-Type: text/html\r\n
    Accept-Ranges: bytes\r\n
    Last-Modified: Mon, 09 Oct 2006 12:24:33 GMT\r\n
    ETag: "324d9ee09debc61:d8f"\r\n
    Content-Length: 30\r\n
    \r\n
    <html>\r\n
    \ttest 1234567\r\n
    </html>
    WWWConnect::Close("ut.xxx.se","80")\n
    closed source port: 2824\r\n
    finished.


    started....
    WWWConnect::Connect("ut.xxx.se","80")\n
    IP = "172.20.50.40:80"\n
    source port: 2857\r\n
    REQUEST: **************\n
    GET /webkit/update_of_70/offer/test.html HTTP/1.1\r\n
    Host: ut.xxx.se\r\n
    Accept: */*\r\n
    \r\n
    RESPONSE: **************\n
    HTTP/1.1 200 OK\r\n
    Server: Microsoft-IIS/5.0\r\n
    X-Powered-By: ASP.NET\r\n
    Cache-Control: no-cache\r\n
    Date: Mon, 09 Oct 2006 12:26:26 GMT\r\n
    Content-Type: text/html\r\n
    Accept-Ranges: bytes\r\n
    Last-Modified: Mon, 09 Oct 2006 12:24:33 GMT\r\n
    ETag: "324d9ee09debc61:d8f"\r\n
    Content-Length: 30\r\n
    \r\n
    <html>\r\n
    \ttest 1234567\r\n
    </html>
    WWWConnect::Close("ut.xxx.se","80")\n
    closed source port: 2857\r\n
    finished.


    started....
    WWWConnect::Connect("ut.xxx.se","80")\n
    IP = "172.20.50.40:80"\n
    source port: 2996\r\n
    REQUEST: **************\n
    GET /webkit/update_of_70/offer/test.html HTTP/1.1\r\n
    Host: ut.xxx.se\r\n
    Accept: */*\r\n
    \r\n
    RESPONSE: **************\n
    HTTP/1.1 200 OK\r\n
    Server: Microsoft-IIS/5.0\r\n
    X-Powered-By: ASP.NET\r\n
    Cache-Control: no-cache\r\n
    Date: Mon, 09 Oct 2006 12:27:22 GMT\r\n
    Content-Type: text/html\r\n
    Accept-Ranges: bytes\r\n
    Last-Modified: Mon, 09 Oct 2006 12:26:22 GMT\r\n
    ETag: "497298219eebc61:d8f"\r\n
    Content-Length: 33\r\n
    \r\n
    <html>\r\n
    \ttest 1234567890\r\n
    </html>
    WWWConnect::Close("ut.xxx.se","80")\n
    closed source port: 2996\r\n
    finished.

     

  • 10-10-2006, 3:40 AM In reply to

    • Bernard
    • Top 50 Contributor
    • Joined on 05-24-2006, 4:30 AM
    • Malaysia
    • Posts 291
    • IIS MVPs

    Re: IIS 5 cache weirdness

    so it does shows the new content! from your log date is showing new content is refreshed within 1 min. It is working, right?

     

    Cheers,
    Bernard Cheah
  • 10-10-2006, 4:06 AM In reply to

    • kirigoe
    • Top 500 Contributor
    • Joined on 09-29-2006, 7:53 AM
    • Posts 14

    Re: IIS 5 cache weirdness

    Bernard:

    so it does shows the new content! from your log date is showing new content is refreshed within 1 min. It is working, right?

    it does update the file eventually, sure, but our web developers can't wait a minute, sometimes more, to see the changes. this applies to all kinds of files, images too. 

  • 10-11-2006, 11:24 AM In reply to

    Re: IIS 5 cache weirdness

  • 10-25-2006, 9:36 AM In reply to

    • kirigoe
    • Top 500 Contributor
    • Joined on 09-29-2006, 7:53 AM
    • Posts 14

    Re: IIS 5 cache weirdness

    content expiration isn't enabled on the affected sites and i'm guessing without it enabled there should be no caching of files of any sort?
  • 10-26-2006, 12:17 AM In reply to

    • Bernard
    • Top 50 Contributor
    • Joined on 05-24-2006, 4:30 AM
    • Malaysia
    • Posts 291
    • IIS MVPs

    Re: IIS 5 cache weirdness

    From what I see - IIS is picking up the new files, and I can't repro it anyway.
    Cheers,
    Bernard Cheah
  • 03-06-2007, 4:31 AM In reply to

    • kirigoe
    • Top 500 Contributor
    • Joined on 09-29-2006, 7:53 AM
    • Posts 14

    Re: IIS 5 cache weirdness

    the solution if anyone is interested:

    After opening a support case with Microsoft, I've activated a DisableMemoryCache registry setting and the problem goes away. I find it a little odd that this is required since Microsoft's paper on Web Server Tuning with IIS5 states that:

    Make sure that this parameter is set to 0 on all production servers. If this parameter is set to 1, static file caching will be disabled. While this may be useful during debugging, disabling caching can severely compromise production server performance. This parameter cannot be configured by using the IIS snap-in.


     

  • 03-06-2007, 4:52 AM In reply to

    Re: IIS 5 cache weirdness

    This is not really acceptable as by setting this nothing will be cached, and it will impact system performance if it's a heavy loaded site.

     

    Cheers,
    Bernard Cheah
  • 03-07-2007, 10:22 AM In reply to

    • kirigoe
    • Top 500 Contributor
    • Joined on 09-29-2006, 7:53 AM
    • Posts 14

    Re: IIS 5 cache weirdness

    I've been questioning it too, do you think that I should not let them close the support case without another solution? The german support technician I've been talking to has been kind of flaky, at first he suggested that it was a network card problem since a "ping localhost" on the server gave a "<10ms" reply, even though this is how all our windows 2000 servers work. It seems to me that he just wants to close this case and forget about it.
  • 03-07-2007, 11:54 PM In reply to

    Re: IIS 5 cache weirdness

    If I'm pay for 250USD for it, I will not accept :)
    Cheers,
    Bernard Cheah
Page 2 of 2 (25 items) < Previous 1 2
Microsoft Communities