I need to write a Greasemonkey script which will prevent Firefox from caching certain pages. Is that possible at all?
I know it's possible to reload a page with
window.location.reload(true) -- but the script won't even run when page is loaded from cache, and even if it runs, how do I know that page is loaded from cache and not from URL?
I know that adding
<meta http-equiv="Cache-control" content="No-Cache"> to HTML of the page would do the trick, but is only parsed at the initial load, and adding it thru GM does not work...
So, how do I achieve this? Is it possible with GM at all?
the script won't even run when page is loaded from cache. Then cache is not your issue. Most likely the page is AJAX driven. Scripts run regardless of whether the page was loaded from cache.