Cache Issue Causes Error Page to Continue to Load Even After Issue Solved

Discussion in 'ASP.NET / ASP.NET Core' started by Will1968, Feb 25, 2014.

  1. Hi,

    Recently my SQL DB went offline which caused my website homepage to return a custom 410 error page.

    The DB issue was fixed and my website works fine except that the homepage continues to load the 410 error page on my PC but on my colleague's it is loading the homepage correctly and when I use Chrome Incognito it loads correctly.

    Although this is probably only going to be an issue for me and potentially one or two other people I want to resolve it.

    Any ideas?

    Here is a snippet of my web.config file with the error handling...

    <httpErrors errorMode="Custom" existingResponse="Replace">
    <remove statusCode="400" subStatusCode="-1" />
    <error statusCode="400" prefixLanguageFilePath="" path="/Errors/410-Page-Gone.aspx" responseMode="ExecuteURL" />
    <remove statusCode="401" subStatusCode="-1" />
    <error statusCode="401" prefixLanguageFilePath="" path="/Errors/401-Not-Logged-In.aspx" responseMode="ExecuteURL" />
    <remove statusCode="403" subStatusCode="-1" />
    <error statusCode="403" prefixLanguageFilePath="" path="/Errors/403-Not-Authorised.aspx" responseMode="ExecuteURL" />
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/Errors/410-Page-Gone.aspx" responseMode="ExecuteURL" />
    <remove statusCode="410" subStatusCode="-1" />
    <error statusCode="410" prefixLanguageFilePath="" path="/Errors/410-Page-Gone.aspx" responseMode="ExecuteURL" />
    <remove statusCode="500" subStatusCode="-1" />
    <error statusCode="500" prefixLanguageFilePath="" path="/Errors/410-Page-Gone.aspx" responseMode="ExecuteURL" />​
    </httpErrors>

    and

    <customErrors mode="On" defaultRedirect="~/Errors/Error.aspx" redirectMode="ResponseRewrite">
    <error statusCode="401" redirect="~/Errors/401-Not-Logged-In.aspx" />
    <error statusCode="403" redirect="~/Errors/403-Not-Authorised.aspx" />
    <error statusCode="404" redirect="~/Errors/404-Page-Not-Found.aspx" />
    <error statusCode="410" redirect="~/Errors/410-Page-Gone.aspx" />
    <error statusCode="500" redirect="~/Errors/500-Server-Error.aspx" />​
    </customErrors>

    Thanks,

    Will
     

    Attached Files:

  2. martino

    martino DiscountASP.NET Staff

    Hi Will

    It just seems that the caching is locally on your web browser. It's happen to all of us at one point and it's really annoying.

    Read this web page article on how to clear your Google Chrome browser's cache: https://support.google.com/chrome/answer/95582?hl=en
     

Share This Page