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?
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.
Your web page should be set to expire sooner or even immediately.
mdolandAuthor Commented:
Ok, that sounds intresting. How do I do that?
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?
I said << maybe >>
If you don't know, I don't know
mdolandAuthor Commented:
I got the general key to solve it.
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.