Chrome needs CTRL-F5 now and then

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?
mdolandAsked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
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
 
strivoliCommented:
Your web page should be set to expire sooner or even immediately.
0
 
mdolandAuthor Commented:
Ok, that sounds intresting. How do I do that?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
mdolandAuthor Commented:
How do I set the nocache parameter?
0
 
leakim971PluritechnicianCommented:
I said << maybe >>
If you don't know, I don't know
0
 
mdolandAuthor Commented:
I got the general key to solve it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.