tsuyopon / webpagetest

Automatically exported from code.google.com/p/webpagetest
0 stars 0 forks source link

setHeader for html request only #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Normally when you send a header request it's for the page and not all the 
individual resources.  It would be great if there was a "setHeader" option that 
applied to the text/html get request, but did not apply to all the individual 
resources that page would fetch.

Specifically:
When using the "navigate" script to navigate pages, the Referer value does not 
get set as it is the equivalent of typing in a new url in the navigation bar.  
This causes the "flow" to break as one page does not know it comes from the 
previous.  If "Referer" was something that could be set on the page this would 
fix the issue.  The problem with setHeader is it also makes the changes to all 
the individual resources requested on that page as well.

Optional:
If applying only to the html request is not an option, a "newHeader" style 
value that only added a header if it didn't exist would fix this scenario.  
Referer headers are set by default for individual requests by browsers.  The 
only request that isn't getting the Referer header is the page itself as it's a 
navigate and not a click.  Therefore, if headers were added where they don't 
exist only, this would solve the issue.

Original issue reported on code.google.com by trevor.m...@strangeloopnetworks.com on 19 Jun 2013 at 6:07

GoogleCodeExporter commented 9 years ago
https://github.com/WPO-Foundation/webpagetest/issues/69

Original comment by PatMee...@gmail.com on 4 Jul 2013 at 6:11