upper icon indicating copy to clipboard operation
upper copied to clipboard

Should HEAD responses get X-cache-tags headers too?

Open RedLucas opened this issue 4 years ago • 2 comments

Since bots often use HEADs to check for content updates or if the server is alive, it makes sense to cache HEADs via CDN.

With this same reasoning, I think the upper process should attach the cache headers to both GETs and HEADs.

RedLucas avatar Jan 26 '22 19:01 RedLucas

Hi Lucas,

I missed this! I'll do some research on this topic.

ostark avatar Jun 01 '22 11:06 ostark

Hey, I appreciate it!

I worked around this issue on my end by serving HEAD requests like GET within CF. (which is technically ok but really not ideal).

but yeah, I was having issues with HEAD requests being uncached, which ends up akin to being DDoSed by web crawlers... Figured I'd bring it up here. :)

RedLucas avatar Jun 01 '22 20:06 RedLucas