Welcome to TalkGraphics.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,838

    Info Website not displaying Changes - Caching Problems

    As a designer, you probably make lots of changes and Preview often. You may then do the same with Publishing or even with local Exports.

    Your browser performs a thing called caching. When you visit the same web address again, it remembers your previous visits.

    If you press the browser F5 key or Refresh icon, the page will reload but the cache is unaffected.
    If, however, you instead press Ctrl+F5 or Hard Reset, the page is reloaded with the page's caching cleared.
    You can prove this by opening the Browser Developer Tools with F12 and picking the Network tab and then pressing F5 on the original page.
    The amount of data transferred should be far more if you press Ctrl+F5 rather than just F5.

    Now there is a difference between Preview and local Export of a website.

    In Preview, Xara invokes a built-in server and publishes to a web address like http://localhost:8000/virt<magic-number>/index.htm.
    Every design Preview has its own unique <magic-number> for a given XDA session. Close the XDA, restart and there is a different <magic-number>.
    Caching is mostly avoided. Xara's built-in server probably has some pragma tuning to lessen caching in the same session. Effectively, you will still get some caching until you "Switch off and on again."
    For completeness, Xara "publishes" the Preview into a local filestore like %localappdata%\Local\Temp\Xara_XPSV18_18697\. You can examine your site's assets in something like the %localappdata%\Local\Temp\Xara_XPSV18_nnnnn\index_ htm_Files\ folder.

    In a local Export Website, there is no server and you are seeing an address like file:///E:/Play%20area/Languages/fr/index.htm.
    There should be no caching either so all changes should be apparent immediately.

    There is a further difference when you Publish. Your server caches things too.
    You still have browser caching but now you also have caching where your site is deployed. If you use Cloudflare, your site is sitting on edge servers thought its content delivery network (CDN). Your changes have to be send around the world.
    To help, your service provider may have a capability called 'Purge Server Cache.' This clears all resources from the CDN cache in all Cloudflare data centres such that all new requests are fetched from your (recently updated) server assets.

    If you are having problems, then, in order:
    1. Browser > Ctrl+F5.
    2. Recheck with a local Export.
    3. Check with a different Browser that has no cache or never seen the web address before.
    4. Disable your server CDN cache when uploading new content.
    5. Experiment with:
      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
      <meta http-equiv="Pragma" content="no-cache">
      <meta http-equiv="Expires" content="0">
      in an on-page Placeholder Code (head).
      Shift off-page to remove.
    6. Check the Browser Developer Tools F12 > Network > Headers > Response Headers for assets of interest. Usually, xr_fonts.css, xr_main.css, xr_custom_styles.css & xr_text.css, affect the layout and presentation.
    7. Jump into your website's .htaccess file and alter the caching parameters there.

    Feel free to link to this Thread when a Newbie is in trouble.

    Acorn
    Last edited by Acorn; 05 January 2022 at 07:40 AM. Reason: Oops - Removed formatting guff & tidied
    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

 

 

Tags for this Thread

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
  •