Skip to content
Snippets Groups Projects
Unverified Commit 3db89e2a authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan Committed by GitHub
Browse files

Allow caching of fonts and images (#18239)

Webpack generate multiple resources with the name of
"/[md4-hash].ext". We should allow those to be
cached.
parent 7ea4b567
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@
;; match requests that are js/css and have a cache-busting query string
(and query-string
(re-matches #"^/app/dist/.*\.(js|css)$" uri))
;; any resource that is named as a cache-busting hex string (e.g. fonts, images)
(re-matches #"^/app/dist/[a-f0-9]{20}+.*$" uri)
;; GeoJSON proxy requests should also be cached
(re-matches #"^/api/geojson/.*" uri))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment