Comment #7 on issue 23162 by getify: Cache ignored on page-refresh for some  
dynamic scripts with cache-headers
http://code.google.com/p/chromium/issues/detail?id=23162

I appreciate the detailed response.

I'm still a little confused as to why this "bug" shows up under the VERY  
SPECIFIC
quirky circumstances that it does:

1. There must be more than one script loading (two or more... only one  
loading will
not exhibit the behavior)

2. The script URL's must be to dynamic resources (like .php)... loading  
a .js type
URL does not cause the behavior. Furthermore, the URL must have some sort  
of dynamic
parameters in it (like the random number parameters shown in my tests)

3. The scripts must be loaded dynamically, but ONLY during page load.. if  
they are
loaded on-demand later (like via the click of a button by a user), the  
behavior
doesn't show up, either on first page view or on subsequent page views.

4. The "script2.php" URL from the test loads fine once (with  
type "script/preload"
on the script tag), and then "validates" from cache when immediately  
re-requested
(same URL) via type "text/javascript" on another script tag, so it doesn't  
have to
load the second time from the server. This is desired behavior.

BUT, this only happens on the first page view. If you refresh the page, the  
script
gets a new URL (which should mean it only has to load from the server once  
again),
but instead, it has to load from the server *twice*. It has a new different  
URL from
the first *page view*, BUT it has the *same* URL for both attempts on this  
second
page view.

So, why is the behavior for the first page view (with 2 attempts to load  
the same
URL) different from the behavior of a refreshed page view (with 2 attempts  
to load
the same URL)?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

-- 
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs

Reply via email to