H
Hono3mo ago
gavriguy

honox asset caching

I'm using honox in my project. In production it creates a signed css and js files + adds all static files located in the public folder as expected. The issue is their cache control is set to public, max-age=0, must-revalidate Is there anyway to control it? I want to cache the css, js and static files forever
4 Replies
blair
blair3mo ago
forever...??
gavriguy
gavriguyOP3mo ago
the css and js are signed and the static files are fonts that are not going to change by signed i mean hashed - whenerver they change their file name changes
Memtooth
Memtooth3mo ago
That would be part of your app middleware, have you checked out the standard cache middleware?
gavriguy
gavriguyOP3mo ago
I couldn't find it - I will recheck thank you

Did you find this page helpful?