Browser Caching BASK page and Mini Basket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SidFeyDesigns
    Mighty Mivite








    • Jan 2012
    • 598

    #1

    Browser Caching BASK page and Mini Basket

    We have been having customers call us having trouble ordering. Particularly our Personalized Family Trees.

    Check out these Personalized Family Tree Gifts at Love Is A Rose


    Here is the process of ordering:

    They select which style they want, fill out the required info, and then add it to the cart.

    The mini basket drops down and after 5 seconds they are automatically redirected to this page via some code in our scripts.js file that executes after the mini basket is supposed to slide up out of view:

    Check out these Family Tree Hearts & Discs at Love Is A Rose


    They they begin adding magnetic hearts and discs one by one to build their tree in the cart.

    The issue we are having is that the browsers are showing cached versions of the mini basket and BASK page.

    The only way they can see the fully updated and current mini basket/Bask page is if they manually refresh there browser.

    My question is; are there any caching settings that can be changed within miva or on our server/htaccess file?

    We have an apache server running plesk

    This is what is in the additional headers section:

    Strict-Transport-Security: max-age=63072000

    We also have some code in our htaccess file for caching. Here it is:

    Code:
    <IfModule mod_deflate.c>
        #The following line is enough for .js and .css
        AddOutputFilter DEFLATE js css
        AddOutputFilterByType DEFLATE text/plain text/html text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp
    
        #The following lines are to avoid bugs with some browsers
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
    </IfModule>
    # BEGIN EXPIRES
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 10 days"
        ExpiresByType text/css "access plus 1 week"
        ExpiresByType text/plain "access plus 1 month"
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
        ExpiresByType image/jpg "access plus 1 month"
        ExpiresByType application/x-javascript "access plus 1 month"
        ExpiresByType application/javascript "access plus 1 week"
        ExpiresByType application/x-icon "access plus 1 year"
    </IfModule>
    # END EXPIRES
    <IfModule mod_headers.c>
        <FilesMatch "\.(js|css|xml|gz)$">
            Header append Vary Accept-Encoding
        </FilesMatch>
        <FilesMatch "\.(ico|jpg|png|gif|swf)$">  
            Header set Cache-Control "public"  
        </FilesMatch>  
        <FilesMatch "\.(css)$">  
            Header set Cache-Control "public"  
        </FilesMatch>  
        <FilesMatch "\.(js)$">  
            Header set Cache-Control "private"  
        </FilesMatch>  
        <FilesMatch "\.(x?html?|php)$">  
            Header set Cache-Control "private, must-revalidate"  
        </FilesMatch>
    </IfModule>
    We are using the Suivant Readytheme.

    Thank you for the help.

    -Nick
    Nick Harkins
    www.loveisarose.com
Working...
X