{
async headers() {
return [
{
source: '/cdn-cgi/image/(.*)', // does not work
headers: [
{
key: 'cache-control',
value: 'public, max-age=14400',
},
],
},
{
source: '/images/(.*)', // does not work
headers: [
{
key: 'cache-control',
value: 'public, max-age=14400',
},
],
},
];
},
images: {
minimumCacheTTL: 3600, // this does nothing
loader: 'custom',
loaderFile: './imageLoader.js',
},
}
{
async headers() {
return [
{
source: '/cdn-cgi/image/(.*)', // does not work
headers: [
{
key: 'cache-control',
value: 'public, max-age=14400',
},
],
},
{
source: '/images/(.*)', // does not work
headers: [
{
key: 'cache-control',
value: 'public, max-age=14400',
},
],
},
];
},
images: {
minimumCacheTTL: 3600, // this does nothing
loader: 'custom',
loaderFile: './imageLoader.js',
},
}