Wednesday, 25 January 2017

Re: RESOLVED: [Was] Netsurf inconsistent behaviour between RISC OS 5.23 and 6.20

In article <5603a241a4brian.jordan9@btinternet.com>, Brian Jordan
<brian.jordan9@btinternet.com> wrote:

[Snip]

> I suspect two versions of the relevant style sheet were
> being stored and that one was invoked when I loaded the online version
> of the site and the other when I loaded the local version.

[Snip]


There's that 'thing' when changes have been made to a stylesheet but a
browser doesn't load it because it already has the old one. Which is what
may have happened here. To prevent it, have something like this in your
Head:

<link type="text/css" rel="StyleSheet" href="style.css?version=latest" />

Appending any fake variable to the URL forces it to be loaded every time
the page is viewed and not just when the browser feels like it.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

No comments:

Post a Comment