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

Send Cache-Control header #476

Merged
merged 1 commit into from
Jun 5, 2018
Merged

Send Cache-Control header #476

merged 1 commit into from
Jun 5, 2018

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Jun 4, 2018

In JS SDK we're adding random values to URL because of an older Chrome versions issue: stellar/js-stellar-sdk#15. With correct Cache-Control headers it's not needed anymore.

This is a fix for browser based requests. In a future caching strategy should be more sophisticated so that Horizon responses can be cached at the proxy level (ex. /transactions/{id} will never change, unless we change response struct).

Copy link
Contributor

@tomerweller tomerweller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'd create a separate issue regarding custom cache control for immutable resources.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants