fix: caching for sprite.svg (#20832)
* update cache-control header for sprite.svg * updated regex
This commit is contained in:
@@ -498,8 +498,15 @@ const nextConfig = {
|
||||
headers: [CORP_CROSS_ORIGIN_HEADER],
|
||||
},
|
||||
{
|
||||
source: "/icons/sprite.svg",
|
||||
headers: [CORP_CROSS_ORIGIN_HEADER, ACCESS_CONTROL_ALLOW_ORIGIN_HEADER],
|
||||
source: "/icons/sprite.svg(\\?v=[0-9a-zA-Z\\-\\.]+)?",
|
||||
headers: [
|
||||
CORP_CROSS_ORIGIN_HEADER,
|
||||
ACCESS_CONTROL_ALLOW_ORIGIN_HEADER,
|
||||
{
|
||||
key: "Cache-Control",
|
||||
value: "public, max-age=31536000, immutable",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
...(isOrganizationsEnabled
|
||||
|
||||
Reference in New Issue
Block a user