- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
08-05-2015 11:04 PM
08-06-2015 01:08 AM
08-10-2015
03:03 AM
- last edited on
05-12-2020
10:29 AM
by
TealiumJustin
Just to add to this, Tealium files have the following cache expiration (TTL):
Learn more about how Universal Tag (utag.js) files are cached in the browser.
Adrian
08-21-2018 12:42 PM
08-21-2018 01:21 PM
Hi @novikp,
There are definitely ways, it depends on your use-case.
For example, if your deployment uses utag.sync.js, you could make sure that the script reference includes a Math.random cachebuster (e.g. utag.sync.js?cb=0.54245424), and then have utag.sync.js write its current ##UTVERSION## value into a global variable, that's then used as a cachebuster on your request for utag.js. What that means is that every customer will be forced to download a fresh utag.sync.js with every pageview (so you lose cache efficiency there), but will always get the new utag.js if the published version has changed. This is not dissimilar to the way in which the individual tag files are cachebusted only on change, but it does impact performance due to the need to re-download utag.sync.js on every page.
Alternatively, if it's just for testing purposes, you can use thing like Chrome dev tools to disable caching of resources, or add an optional cookie-based cachebuster to the utag.js request that allows you to set a cookie to force a cachebusted request.
All things are usually possible, just depends on exactly what you need, and what cost (i.e. complexity, performance, changes to the way the resources are loaded) you can live with.
Copyright All Rights Reserved © 2008-2023