Solved

Chrome needs CTRL-F5 now and then

Posted on 2013-11-15
6
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move inline javascript functions to external .js file in asp.net 12 56
Problem in javascript 17 58
Excel to HTML macro with inserting lines 14 51
Slow Down an Animation 3 29
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 …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

734 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