?
Solved

Chrome needs CTRL-F5 now and then

Posted on 2013-11-15
6
Medium Priority
?
330 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 20

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 1500 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
7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

 

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This Micro Tutorial will demonstrate Chrome and Firefox's extension MozBar, which allows you to easily highlight followed, no followed, internal, and external links on a page. It is also used to highlight keywords on a page to for adequate optimized…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

801 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