Welcome to TalkGraphics.com
Results 1 to 9 of 9

Hybrid View

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

    Lightbulb Refreshing Xara Resources

    Dear Xara...

    Over the years, TG has advised users of the need to purge the local browser cache so recent page changes can be seen by all. Clearly, a lot of the time this only affects the designer but, unfortunately, impacts keen clients too just at the time of closing the design. The experience of pressing Ctrl+F5 is blatantly not a solution. Meta headers are also not the way ahead either.

    With the recent discourse in https://www.talkgraphics.com/showthr...er-browsers-OK, it is apparent that caching can be outwith the control of the designer; not just server caching but CDN and other hosting services. Your Xara developers have the ability to configure their development environment and therefore do not encounter these bugbears as frequently.

    The major snafu is around cached CSS/JS assets; (jquery.js, prs4.js, roe.js, ani.css) are probably static. The ones that probably matter the most are (replaceMobileFonts.js, custom_styles.css, xr_all.css, xr_fonts.css, xr_text.css, xr_main.css).

    My proposal is the latter clutch are uniquely timestamped (e.g., xr_fonts.css?1572007718266).
    In the header of the index page, we would then have:
    Code:
     <link rel="stylesheet" href="index_htm_files/xr_main.css?1572007718266"/>
     <link rel="stylesheet" href="index_htm_files/custom_styles.css?1572007718266"/>
     <link rel="stylesheet" href="index_htm_files/xr_text.css?1572007718266"/>
     <link rel="shortcut icon" type="image/ico" href="index_htm_files/favicon.ico"/>
     <link rel="icon" type="image/ico" href="index_htm_files/favicon.ico"/>
     <meta name="msapplication-TileImage" content="index_htm_files/tileicon.png"/>
     <link rel="apple-touch-icon" href="index_htm_files/tileicon.png"/>
     <script src="index_htm_files/roe.js"></script>
     <script src="index_htm_files/replaceMobileFonts.js?1572007718266"></script>
     <link rel="stylesheet" href="index_htm_files/xr_all.css?1572007718266" id="xr_mvcss"/>
    This would result in an additional 128kB download for each new update but caching kicks in inbetween.

    Could you implement this or a similar stratagem into your Xara HTML filer as a matter of high priority?

    Thanks,
    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

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: Refreshing Xara Resources

    I can't say I follow that exactly Acorn but I guess what you're asking is that js & css files are exported with unique file names (date stamped) every time to ensure they are not cached? Sounds like a very sensible & easy solution to me.

    So +1
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,827

    Default Re: Refreshing Xara Resources

    Quote Originally Posted by Egg Bramhill View Post
    I can't say I follow that exactly Acorn but I guess what you're asking is that js & css files are exported with unique file names (date stamped) every time to ensure they are not cached? Sounds like a very sensible & easy solution to me.
    So +1
    Thank you Egg, almost but not quite. The filename remains the same but the browser is conned into believing it is different with the query term (? + event.timeStamp) and therefore fetches it from the server, bypassing caching. The local cache then has
    filename?event.timeStamp cached so a second and subsequent fetches use the cache.

    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

  4. #4
    Join Date
    Nov 2013
    Location
    Hertfordshire, UK
    Posts
    1,488

    Default Re: Refreshing Xara Resources

    I'll take a look and raise this in our next feature set meeting.

    Thanks
    Rob

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,827

    Default Re: Refreshing Xara Resources

    Rob, grateful,
    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

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,918

    Default Re: Refreshing Xara Resources

    Thanks for the clarification Acorn.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

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
  •