Telegraph icon indicating copy to clipboard operation
Telegraph copied to clipboard

Add caching for served directories

Open Joebayld opened this issue 3 years ago • 1 comments

https://github.com/Building42/Telegraph/issues/118

Joebayld avatar Dec 10 '21 11:12 Joebayld

I'm not sure if this wants to be an option or enabled by default? But it seems like a useful thing to have so we're not constantly delivering files that aren't modified.

Joebayld avatar Dec 10 '21 11:12 Joebayld

Hi, this looks good 👍 , thanks!

I think we can support the If-Modified-Since header, but we probably don't want to enable the "public, max-age=0" cache header by default.

I'll merge it in and do a couple of tweaks after that.

Come to think of it, this header should probably also support HEAD requests

yvbeek avatar Aug 12 '22 19:08 yvbeek