For my autobiography I'm using static pages, which are FTP'd from my home box whenever I edit something. The navigation is in a separate navigaj.html file, which is generated each time, and loaded into the page, using jQuery, like this:
<script>$("#leviokvir").load("navigaj.html", function()
{
$("#k1981").attr("open", true);
$("#z1982").attr("open", true);
loRow=document.getElementById("g3003");
loRow.scrollIntoView();
loRow=document.getElementById("naslov");
loRow.scrollIntoView();
});
</script>
Just try to navigate to
this page and you'll see that the date in the headline is absent from navigation (well, maybe not if you're there the first time, but it will be if you have a cached version). The #k1981 is the div with the decade summary, and #z1982 with the year's.
Now the problem: the navigation file is cached, and I can't get it to refresh even manually, until I specifically navigate to it, replacing the "3003" in the url with "navigaj", and then pressing ctrl+f5 (or ctrl-clicking the refresh button). I tried a couple of tricks on how to set the expiration on that file to something short, like a day or two, but it seems I found a few obsolete and deprecated features. How's that done in HTML5, for a file loaded on the side like this?