Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: menus & number of cart items on home page

  1. #1
    kpaul is offline Member
    Join Date
    Nov 2009
    Posts
    54

    Default menus & number of cart items on home page

    I'm trying to track down an issue that, so far, I think is only happening in IE. It seems like Internet Explorer will occasionally show the wrong number of cart items or not render the menus on the home page but all the pages deeper in the site are always correct. I've even seen the mini cart on the home page show the wrong items in the cart and clicking the "checkout" link even displays an incorrect shopping cart. But if you click the "checkout" link from any other page it shows the correct cart.

    I'm guessing this is some kind of caching issue. I've gone over the code for the home template several times comparing it to the normal template and can find nothing out of the ordinary. Is there something I'm missing or is it possible that there is a special cache setting for the home page in IIS or in appconfigs?

    I haven't been able to reproduce this issue in Firefox.
    Keith


    http://goo.gl/s20Ot

    ASPDNSF v9.3/64 Bit
    Windows Web Server 2008 R2
    IIS 7.5

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Sounds like a caching issue - try adding this in your header to confirm...


    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">


    TTFN

    BFG

  3. #3
    kpaul is offline Member
    Join Date
    Nov 2009
    Posts
    54

    Default

    Thanks BFG. I added those tags and still no good. FYI, testing my site at http://web-sniffer.net/ shows that the page should not be cached:

    HTTP Response Header

    Status: HTTP/1.1 200 OK
    Cache-Control:no-cache,private
    Pragma:no-cache
    Content-Length:57271
    Content-Type:text/html; charset=utf-8
    Expires:Fri, 04 Mar 2011 17:12:00 GMT
    Server:Microsoft-IIS/7.5X-AspNet-Version:2.0.50727
    Set-Cookie:ASP.NET_SessionId=yb14bvantku10e45vtjhqsv2; path=/; HttpOnly
    Set-Cookie:SkinID=7; domain=goo.gl/s20Ot; expires=Sat, 03-Mar-2012 17:12:00 GMT; path=/
    X-Powered-By:ASP.NET
    Date:Fri, 04 Mar 2011 17:13:20 GMT
    Connection:close


    Any other thoughts?
    Keith


    http://goo.gl/s20Ot

    ASPDNSF v9.3/64 Bit
    Windows Web Server 2008 R2
    IIS 7.5