Solved

Chrome needs CTRL-F5 now and then

Posted on 2013-11-15
6
310 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
ID: 39651031
Your web page should be set to expire sooner or even immediately.
0
 

Author Comment

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

Accepted Solution

by:
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

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

Expert Comment

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

Author Closing Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This Micro Tutorial demonstrates in Google how to submit a page to get it crawled quickly or recrawled after making changes that you wan tot show up in Google.
This Micro Tutorial will demonstrate how marketers can use the Mobile Emulation Tool in Chrome Developer Tool. This will let you preview your site on any mobile device.

911 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

25 Experts available now in Live!

Get 1:1 Help Now