0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Configured all Admin assets to contain fingerprint hash

refs https://github.com/TryGhost/Toolbox/issues/403

- as we're moving towards independent Admin releases, we want to make
  sure that we can bust cache when an asset is updated
- right now, svg, ttf and ico images aren't fingerprinted, so if they
  change, it'll require a browser cache clear to update them
- instead, we should add them to the list of fingerprinted file
  extensions to fix this issue
This commit is contained in:
Daniel Lockyer 2022-09-01 22:13:14 +01:00
parent f53eac3043
commit 083391c995
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -135,7 +135,7 @@ module.exports = function (defaults) {
},
fingerprint: {
enabled: isProduction,
extensions: ['js', 'css', 'png', 'jpg', 'jpeg', 'gif', 'map']
extensions: ['js', 'css', 'png', 'jpg', 'jpeg', 'gif', 'map', 'svg', 'ttf', 'ico']
},
minifyJS: {
options: {