News for hackers. Stuff that matters.
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by jutaz on Monday December 19, 2016 @07:41AM (#13211034)
I'm not exactly sure why browsers do that, but I suspect that's due to caching.

However, I would suggest that you use "Inspect element" and open up dev tools - this way you will see DOM exactly as it is rendered.

Re:Ask HN: Why does 'View Source' issue a new HTTP request? by aplummer on Monday December 19, 2016 @07:43AM (#13211042)
Often the dom has been changed, and you want to know what the server actually sent
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by jbm on Monday December 19, 2016 @07:46AM (#13211060)
You can still do that with the inspect menu; if you look at the network history in Chrome, you can see the headers sent, the headers received and the body sent / received.
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by koolba on Monday December 19, 2016 @07:48AM (#13211064)
> You can still do that with the inspect menu; if you look at the network history in Chrome, you can see the headers sent, the headers received and the body sent / received.

That only works if you have it open before the page loaded. It doesn't save information about network requests that occurred before the inspector was opened.

Re:Ask HN: Why does 'View Source' issue a new HTTP request? by noir_lord on Monday December 19, 2016 @08:13AM (#13211144)
It would be handy if it did though since I continually forget to open inspector before the request.

I'd love a "I'm a developer, store all the things!" setting

Re:Ask HN: Why does 'View Source' issue a new HTTP request? by radarsat1 on Monday December 19, 2016 @08:12AM (#13211135)
> I suspect that's due to caching.

Shouldn't caching have the opposite effect? i.e. it's treated as a new resource but no new http request is needed because it's in the cache..