PM> Install-Package Dyfort.Umbraco.StaticFiles

The Dyfort.Umbraco.StaticFiles package seamlessly integrates with your Umbraco project. It extends existing functionality, allowing you to control caching behavior for static files like CSS, JavaScript, images, and fonts.

Once installed, you can define caching rules for specific file types or directories. These rules determine the cache-control headers sent to the browser when a static file is requested.

You have configurable options to customize caching behavior. Specify the maximum age for caching, indicating how long a file can be stored in the browser's cache before revalidation with the server is necessary.

Please note that the "Dyfort.Umbraco.StaticFiles" plugin, will not function within the Umbraco back office.