Solved

Chrome needs CTRL-F5 now and then

Posted on 2013-11-15
6
308 Views
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?
0
Comment
Question by:mdoland
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:strivoli
Comment Utility
Your web page should be set to expire sooner or even immediately.
0
 

Author Comment

by:mdoland
Comment Utility
Ok, that sounds intresting. How do I do that?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
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.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:mdoland
Comment Utility
How do I set the nocache parameter?
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
I said << maybe >>
If you don't know, I don't know
0
 

Author Closing Comment

by:mdoland
Comment Utility
I got the general key to solve it.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
This Micro Tutorial will demonstrate MozBar viewing metadata, such as description, page title, markup.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now