fix: only pngs
This commit is contained in:
parent
1ba3fed12a
commit
67ecd471af
|
@ -44,13 +44,13 @@ const JSON_TEMPLATE = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '^/.*\\.(png|svg|jpe?g)$',
|
src: '^/.*\\.(png|jpe?g)$',
|
||||||
headers: {
|
headers: {
|
||||||
'cache-control': 'public,max-age=31536000,immutable'
|
'cache-control': 'public,max-age=31536000,immutable'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '^/.*\\.(css|json|map|txt|gz|webapp|woff|woff2)$',
|
src: '^/.*\\.(svg|css|json|map|txt|gz|webapp|woff|woff2)$',
|
||||||
headers: {
|
headers: {
|
||||||
'cache-control': 'public,max-age=3600'
|
'cache-control': 'public,max-age=3600'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue