Chrome needs CTRL-F5 now and then

Posted on 2013-11-15
Last Modified: 2013-11-18
I'm making a website solution with HTML5 and JSON. Now and then Chrome seems to get the cache mixed up resulting in very strange behavior. With a CTRL-F5, everything works again. What can I do to avoid having to do CTRL-F5 now and then?
Question by:mdoland
  • 3
  • 2
LVL 19

Expert Comment

ID: 39651031
Your web page should be set to expire sooner or even immediately.

Author Comment

ID: 39651035
Ok, that sounds intresting. How do I do that?
LVL 82

Accepted Solution

leakim971 earned 500 total points
ID: 39651044
add a random parameter to your Ajax url.
var random = new Date().getTime();
var myUrl = "/path/to/my/json.php?random=" + random;

Open in new window

or maybe you've a nocache parameter to set to true.
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.


Author Comment

ID: 39651053
How do I set the nocache parameter?
LVL 82

Expert Comment

ID: 39651060
I said << maybe >>
If you don't know, I don't know

Author Closing Comment

ID: 39656057
I got the general key to solve it.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML - Color not displaying correctly in EMAIL. 6 37
Jquery keyup 4 18
Getting Random number with min and max value. 2 28
ASP server side get value 15 22
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
This Micro Tutorial demonstrates how to disable your ad blocker for some sites. In case Marketers would like to see ads on a site, this allows them to possibly view their competitors without have ads run on every site they visit.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question