Skip to content

Allow fetch callback to alter url#119

Open
blahgeek wants to merge 1 commit intodieulot:masterfrom
blahgeek:master
Open

Allow fetch callback to alter url#119
blahgeek wants to merge 1 commit intodieulot:masterfrom
blahgeek:master

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