You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The static handler can be configured with setMaxAgeSeconds to define a default value for caching headers.
This value will be used for any file regardless of its content type or extensions.
In projects were the frontend assets are created with a framework (e.g React/Vuejs), javascript and css files have their names changed by the build. It is fine to have browsers cache them longer (e.g one year).
So being able to configure the max age depending on the file extension or media type would help.
The text was updated successfully, but these errors were encountered:
The static handler can be configured with
setMaxAgeSeconds
to define a default value for caching headers.This value will be used for any file regardless of its content type or extensions.
In projects were the frontend assets are created with a framework (e.g React/Vuejs), javascript and css files have their names changed by the build. It is fine to have browsers cache them longer (e.g one year).
So being able to configure the max age depending on the file extension or media type would help.
The text was updated successfully, but these errors were encountered: