New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 598179 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

rel="preload" downloading asset multiple times

Reported by rob...@robert-daly.com, Mar 27 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36

Example URL:
http://codepen.io/unknown9595/pen/eZRGdo

Steps to reproduce the problem:
1. Load page with network tab open in Canary
2. In Network tab, look at "https://robert-daly.com/temp/main.css"
3. Its downloaded three times when the link rel="preload"

What is the expected behavior?
Should only download once.

What went wrong?
The rel="preload" is downloading the CSS multiple times, when it shouldn't. When using polyfill or standard link tag, it's only downloaded once.

Did this work before? N/A 

Chrome version:  51.0.2690.0 canary  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0
 
Cc: rdsmith@chromium.org
Status: WontFix (was: Unconfirmed)
I think this is behaving as intended.  <link rel="reload"> is intended to pre-populate the cache so that later loads will hit in cache rather than going to the network.  When I reproduce this and look at the net-internals events tab, I do indeed see three URLRequests.  But if you look at their associated disk cache entries, the first one is a write, and the later two are reads--i.e. we're writing it into the cache when we first get it from the network, and then reading it back out without going to the network for the second two loads.  

Let me know if there's something about your concern I'm missing (I'll see responses on this bug even though I'm closing it).

Sign in to add a comment