Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Setting the cache control #114

Open
paolobarbolini opened this issue Mar 23, 2018 · 1 comment
Open

Setting the cache control #114

paolobarbolini opened this issue Mar 23, 2018 · 1 comment

Comments

@paolobarbolini
Copy link

Have you ever thought of adding the ability to set the cache control of a response?
This would be extremely useful for a few reasons:

  1. Cloudflare would cache the response in their cdn, reducing the load on your servers for particularly popular urls.
  2. We wouldn't hammer the origin servers receiving the request
  3. We would get better performance, since we could get an answer from a closer cdn node or for origins far from crossorigin.me servers, this would be extremely useful for a project I'm currently working on which requests pages from a website hosted in Italy, which currently takes 4 seconds.

I could implement this myself if you like this idea.

@hyperobject
Copy link
Owner

If you'd like to try implementing this, that would be fantastic!

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

No branches or pull requests

2 participants