gin-contrib / static

Static middleware
MIT License
290 stars 41 forks source link

No Caching? #7

Open FIL1994 opened 7 years ago

FIL1994 commented 7 years ago

Is it possible to use this with the cache middleware or any way to enable caching?

ChadTaljaardt commented 6 years ago

Im also interested in this.

GwynethLlewelyn commented 1 year ago

@ghezzofr seemed to have added a PR to add the extra header files for proper caching in #15. However, AFAICS, that PR was 'abandoned' and the current codebase (as of mid-2023 at least) does not reflect any of the ideas proposed by @ghezzofr.

My question is thus: has this been implemented in a different way? Or maybe I'm completely outdated and these extra headers appear automagically due to changes made somewhere on the Gin engine, and which I totally missed?

In any case, it's always nice to add a note explaining why a PR was abandoned :) so that interested people in the future don't waste time implementing it :)

(Note: personally, I place all my apps behind a nginx reverse proxy, which handles all static caching, and sets the required header files anyway; however, there certainly are lots of use cases where having a reverse proxy is simply not feasible)