gin icon indicating copy to clipboard operation
gin copied to clipboard

How do I set the cache time for static files

Open hackersean opened this issue 1 year ago • 3 comments

Description

engine.Static("/static", staticPath)

I want to add a header to a static file,like c.Header("Cache-Control", "private, max-age=86400"),How to achieve。

thanks

hackersean avatar Jul 21 '23 04:07 hackersean