Closed candidosales closed 11 months ago
I'm using the format URL, and I noticed that the HTTP response headers aren't sending the Cache-Control attribute.
Using the strapi-plugin-local-image-sharp:
strapi-plugin-local-image-sharp
Without strapi-plugin-local-image-sharp:
Could you add a new attribute to set the maxAge of the Cache-Control in the response headers? Example: https://docs-v3.strapi.io/developer-docs/latest/development/plugins/upload.html#using-a-provider
config/plugin.js
module.exports = ({ env })=>({ "local-image-sharp": { config: { cacheDir: ".image-cache", maxAge: 86400000, }, } });
It's precious for performance and metrics.
I'm using the format URL, and I noticed that the HTTP response headers aren't sending the Cache-Control attribute.
Using the
strapi-plugin-local-image-sharp
:Without
strapi-plugin-local-image-sharp
:Could you add a new attribute to set the maxAge of the Cache-Control in the response headers? Example: https://docs-v3.strapi.io/developer-docs/latest/development/plugins/upload.html#using-a-provider
config/plugin.js
It's precious for performance and metrics.