2 ms·
It's immutable in the sense that `<script src="https://assets.myapp.com/apps/1.0.2/main.js">` https://assets.myapp.com/apps/1.0.2/main.js">` will always load th
by knubie 8y ago
It's immutable in the sense that `<script src="https://assets.myapp.com/apps/1.0.2/main.js">` https://assets.myapp.com/apps/1.0.2/main.js">` will always load the same resource whenever the page is loaded (especially if it's cached indefinitely).
Where as `<script src="./main.js">` could potentially load different versions of `main.js` depending on the release version.
- nmca 8y agoAnd particularly, if you always host the old versions then you can rollback by updating index.html - rollbacks are otherwise hard when you start thinking about caches.