Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust cache times based on various factors #46

Open
aaronpk opened this issue Sep 28, 2017 · 0 comments
Open

Adjust cache times based on various factors #46

aaronpk opened this issue Sep 28, 2017 · 0 comments

Comments

@aaronpk
Copy link
Owner

aaronpk commented Sep 28, 2017

  • Tweets can't be edited, so they can be cached for a long time. (It's possible that Twitter may change their image CDN URLs so can't be infinite)
  • Instagram posts can be edited, but most of the time the older a photo is the less likely it is to be edited
  • Other URLs should be more conservative about being cached, since people sometimes use this for testing whether their markup changes are working, or it's used when verifying webmentions for updates. Could probably use similar logic to cache older posts longer.

Possibly give clients a way to force XRay to fetch the post if the client knows it may have been updated such as from a webmention update.

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

No branches or pull requests

1 participant