From c6d18537b42b412fa9016682b23312cf3ad4c43e Mon Sep 17 00:00:00 2001 From: Mark Catley Date: Wed, 8 May 2019 19:52:28 +1200 Subject: [PATCH] Fingerprinting SVGs In the production build all the SVGs are copied into dist/assets without fingerprints. All other assets have fingerprints. Since all files in dist/assets are served with far-future cache headers there would be cache issues if the files were ever updated. This is not major issue as these files are not used in normal operations. Closes #1575 --- ember-cli-build.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ember-cli-build.js b/ember-cli-build.js index fbdca9998e2..53551c2c1b6 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -31,6 +31,9 @@ module.exports = function(defaults) { sassOptions: { includePaths: ['node_modules/normalize.css'], }, + fingerprint: { + extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg', 'ttf', 'woff', 'woff2'], + }, }); // Use `app.import` to add additional libraries to the generated