Browser Cache is Not Refreshing (Even w/ Ctrl + F5)

3,187 views
Skip to first unread message

Jondevelop

unread,
Jul 7, 2012, 5:22:51 PM7/7/12
to fir...@googlegroups.com
My Problem
in summary: My browser cache is not getting completely cleaned out in FF or Chrome, even when pressing Ctrl + F5.
A look at the Network Panel, and sometimes old files hang around, while most times JavaScript code just does not take any changes.

My Hypothesis
Modernizr is the culprit. Perhaps the way in which Modernizr and YepNope are conditionally/dynamically loading some javascript files?

Today’s date is Friday June 29th, Approx. 7pm - 8pm, CST, Huntsville, Alabama.

Firefox 13.0.1

1. Reading through HTML5 Games: Creating Fun with HTML5, CSS3, and WebGL by Jacob Seidelin.
2. I begin reading at the end of Chapter 8, and the start of Chapter 9.
3. I upload Chapter 8 to the server. (via the FTP client WinSCP V. 4.3.8)
4. Open Firefox 13.0.1
5. Load html5.jonathandevelop.com
6. Press Ctrl + F5 to clear cache.
7. Press F12 to open Firebug > Net Panel.
8. All files have HTTP requests Status 200 OK
- Edit local file display.canvas.js
- Upload via FTP; Timestamp indicates current time, upload was successful.
- Firebug > Net Panel response:
200 OK
Last-Modified: Mon, 18 June 2012 19:46:04 GMT
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
9. Look at Javascript source code for changes. Changes are not there.

10. Repeat Steps 1 – 3.
File: display.canvas.js
Last-Modified: Mon, 18 June 2012 19:46:04 GMT
Still no changes in javascript source code.

Keep in mind, I am pressing Ctrl + F5 to refresh the browser window.

Google Chrome 20.0.1132.47 m
1. Follow exact same steps as above with Google Chrome.
2. Open html5.jonathandevelop.com
3. Press F12 to open debug panel > Network Tab
4. Press Ctrl + F5 to clear cache and refresh page.

According to the Size (Content) Column of the Chrome Debug Panel, some resources are being loaded (from Cache) while others, which indicate the file’s size (985KB, 1.08KB, etc.), are new.

Any ideas?

Thanks

alfonsoml

unread,
Jul 9, 2012, 7:49:32 AM7/9/12
to fir...@googlegroups.com
Ctrl+F5 doesn't clear the cache, I guess that it could be described as "reload the page without cache", but after the main scripts are loaded, I guess that anything additional might not be aware of that loading state and uses the normal cache, so for example a XHR request or maybe even a <script> element created on the fly will behave as usual.

The best way to clear the cache is to use Ctrl+Shift+Supr and then check there the "cache" option leaving the rest cleared.
That has always worked fine for me.

And of course, this behavior isn't related to Firebug.

Tim Higham

unread,
Jul 9, 2012, 2:03:05 PM7/9/12
to fir...@googlegroups.com
Call me stupid but what is 'supr' !

--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com
To unsubscribe from this group, send email to
firebug+u...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Sebastian Zartner

unread,
Jul 10, 2012, 1:07:54 AM7/10/12
to fir...@googlegroups.com
I also never heard of Supr, but I assume he means the Super key.

Anyway, just disable the browser cache before reloading via the Disable Browser Cache option inside the Net panel's options menu.
Also see the other thread about browser caching for more clarification about that behavior.

Sebastian


On Monday, July 9, 2012 8:03:05 PM UTC+2, Tim Higham wrote:
Call me stupid but what is 'supr' !

alfonsoml

unread,
Jul 10, 2012, 6:28:53 AM7/10/12
to fir...@googlegroups.com
Sorry, I forgot that it isn't called that way in English, in those keyboards it's "DEL" IIRC, (Backspace over the Enter key and Del in the group over the arrow keys)

Anyway, press Alt if you have the menu bar hidden and then it's under Tools->Clear recent history...



On Monday, July 9, 2012 8:03:05 PM UTC+2, Tim Higham wrote:
Call me stupid but what is 'supr' !

Reply all
Reply to author
Forward
0 new messages