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

Set cache-control headers for responses when running in prod #74

Open
edmondchuc opened this issue Mar 17, 2023 · 0 comments
Open

Set cache-control headers for responses when running in prod #74

edmondchuc opened this issue Mar 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@edmondchuc
Copy link
Collaborator

Set cache-control headers to enable browser and gateway caching.

Most things will benefit from caching. Users in browsers often go to the same pages, if these are cached in the browser, it's instant.

Gateway caching has huge benefits when it comes to clients scraping the data in a Linked Data follow-your-nose manner. Good to set it with stale-while-revalidate strategy.

We may also utilise ETags for more dynamic things, especially when later we have write capability in Prez.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants