Changes between Version 2 and Version 3 of Documentation/NewbieGuide/Caching


Ignore:
Timestamp:
11/08/19 02:43:16 (9 days ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/NewbieGuide/Caching

    v2 v3  
    2020If course you can make the time longer, or shorter, the point is your Xinha files are unlikely to change any time soon so you might as well make it cache for a long time. 
    2121 
    22 If "ease of transition" is a concern (that is when you upgrade Xinha you don't want your clients to be troubled with caching) then name your xinha directory with the version, eg instead of /xinha/XinhaEasy.js` have `/xinha-1.5/XinhaEasy.js` then you won't have that issue will you. 
     22== Cache Busting == 
     23 
     24It is recommended to install your Xinha in a directory which has the version number as part of the name, for example instead of using the directory name `xinha` (as in `/xinha/XinhaCore.js` ) use the directory name `xinha-1.5.4` (as in `/xinha-1.5.4/XinhaCore.js`), this was the length of caching is not an issue for you, or put another way "cache busting" becomes automatic.   
     25 
     26Same goes when using from a CDN, or Xinha's s3 bucket, if you use the specific version ( eg `https://s3-us-west-1.amazonaws.com/xinha/xinha-1.5.4/XinhaEasy.js`) then cache busting becomes a non-issue.