Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

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

Open
RedLucas opened this issue Jan 26, 2022 · 2 comments
Open

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

RedLucas opened this issue Jan 26, 2022 · 2 comments
Labels
Milestone

Comments

@RedLucas
Copy link

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.

@ostark
Copy link
Owner

ostark commented Jun 1, 2022

Hi Lucas,

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

@ostark ostark added this to the Next milestone Jun 1, 2022
@ostark ostark added the feature label Jun 1, 2022
@RedLucas
Copy link
Author

RedLucas commented Jun 1, 2022

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. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants