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

Allow fetch callback to alter url #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blahgeek
Copy link

So that the server may return response especially for InstantClick (e.g. strip header/scripts to reduce bandwidth). Also this could be useful for requesting contents from CDN in a different domain without affecting real location in address bar.

@dieulot
Copy link
Owner

dieulot commented Sep 4, 2015

What I planned is sending an X-InstantClick HTTP header to be able for the server to identify whether the request is from InstantClick or not.

Your solution is interesting though because it would allow to strip headers for static sites too, and helps to avoid the possibility of shooting oneself in the foot with caching.

I’ll think about it more thorougly and see if it’s an easier solution or not. Thanks!

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