Welcome to TalkGraphics.com
Results 1 to 2 of 2

Thread: Cache problem

  1. #1
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Cache problem

    Hello,
    For one of my websites whose data sometimes changes several times a day, I use the commands CACHE and PRAGMA.
    These can be found in my index page under Web Properties>Website>Placeholder Header and are placed automatically in the htm-file by Xara. (see attachment).
    When starting up the web page it should normally not load from the cache (with older data). However, this does not work and the user sees the old content.
    I have found the placeholder-code on the internet therefore I do not know if its working properly.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	cachecontrol.jpg 
Views:	29 
Size:	122.9 KB 
ID:	132678  

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,814

    Default Re: Cache problem

    GK5, you are forcing these as plain text into your header and all that will happen is they are displayed top-left on your pages, probably hidden by the page background.

    They need to be set as META statements, similar to:
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="-1"/>
    <meta http-equiv="CACHE-CONTROL" content="NO-CACHE"/>

    I covered this here, https://www.talkgraphics.com/showthr...ching-Problems.

    I believe Pragma: no-cache is for HTTP1.1 so if you are using SSL, it probably won't work.
    Meta tags may not be HTML5 compliant.
    You have little control over your server and intermediaries caching so you may have to add the directives into your server-side code.

    I suggest you should research further on-line.
    Search for '.htaccess no caching' or similar ==> https://www.a2hosting.co.uk/kb/devel...using-htaccess might be of use.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Bookmarks

Posting Permissions

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