On Sun, March 11, 2012 18:06, Michael Evans wrote:
> Wow, thanks Bob! Works like a charm!

I have often used Bob's technique but there is also
another way to break the cache. The concept is the
same from browser to browser but the exact way that
you do it is browser dependant. If you are typing the
URL in a browser window, you have the ability to add
a ? to it or something like &x=1(23) at the end of
the uri but if the url is in a link or internal to
a script, it might be easier just to manually clear
out the old program, forcing a download.


Most browsers now have a suite of "develper tools"
often invoked by pressing F12 (your browser may
vary). Often there is an option in the tool suite
to turn off caching, thereby forcing fresh copies
of everything, while you are actively making changes
to the site's files. That is helful when you are making
changes to files as a developer but once you get
the files right, they stay static.

If your app loads files to the webserver (or creates
them) and then generates links to them, you may find
it handy to add something like '&dtg='+time() to the
end of your uri. This effectivly breaks whatever
caching the end user has set in his browser. It is a
performance hit as the file is downloaded again, even
if it did not change but it insures that the user always
sees the most recent version of the file.

A compromise is to store each version of the file with
a new name and update the links as new versions become
available or to use the same name but append '&ver='+getVersion()
to the end of the uri. You have to increat the version
number each time a new version of the file is updated.
Thats ideal if you can figure out the logic. It saves
downloading the file again if it did not change but forces
the download it it did.


In chrome
=========
Either Ctrl-Shift-Del or Wrench->Tools->Clear Browsing Data
will clear the browser cache causing everything to be fetched
again from the web server.

This page: http://support.google.com/chrome/bin/answer.py?hl=en&answer=95582

tells you how. You can delete everything, just browser files (leaving history, 
cookies, etc alone) or just the one file that you need refreshed.



In Firefox
==========
See this page on how to clear recent history
http://support.mozilla.org/en-US/kb/Clear%20Recent%20History
Similar options are available to you.

In Safari
=========
Choose Safari > Empty Cache, and then click Empty.

http://support.verio.com/documents/view_article.cfm?doc_id=4069

In IE
=====
Click the "Tools" menu bar.
Choose "Internet Options".
On the "General" tab, click "Clear History".
When it asks "Delete all items in your History folder?", click "OK".
click "OK".

Again, there are ways to clear just what you want.

Clearing cookies for all sites means that you have to renter
account numbers and things like that that sites have
saved for you in cookies so a surgical approach to clearing
cache is probably a friendlier route to go.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to