Re: Preventing client-side caching of the validator results

On Thu, Sep 21, 2000 at 11:37:38AM -0400, Fr?d?ric G. MARAND wrote:
> Hello,
> 
> After using the HTML4.0 (and CSS) validators it for my pages from...
>     http://www.osinet.fr/code/glo.asp
> (a kind of terminology dictionary, that uses parameters to point to various
> subsections)
> 
> ...I noticed the results page always came back not recalculated, unless I
> specifically asked for a refresh. Going further, I found the answer from the
> validator does not include any cache-control directive or other form of
> cachebuster, to prevent browsers from reusing the previous results page.

With my browser and proxy settings, it always validates the current
referrer.

> Maybe it would be a good idea to add something along that line ? For
> instance, the simple fact of changing the default link code from:
> 
> <p>
>   <a href="http://validator.w3.org/check/referer">
>     <img border=0 src="http://validator.w3.org/images/vh40"
>       alt="Valid HTML 4.0!" height=31 width=88></a>
>   </p>
> 
> to something including the page URL would already remove most client-side
> caching. Like:
> 
> <p>
>   <a
> href="http://validator.w3.org/check?url=heregoestheurlofthepagetobevalidated
> ">
>     <img border=0 src="http://validator.w3.org/images/vh40"
>       alt="Valid HTML 4.0!" height=31 width=88></a>
>   </p>
> 
> Or maybe not ? I noticed nothing about this in the mailing list archive.

Yes, you can do that already:

    http://validator.w3.org/check?uri=http://www.osinet.fr/code/glo.asp

(that was the original format of the links, actually; I added
/check/referer afterwards for convenience.)

-- 
Gerald Oskoboiny       <gerald@w3.org>  +1 613 261 6630
System Administrator   http://www.w3.org/People/Gerald/
World Wide Web Consortium (W3C)      http://www.w3.org/

Received on Friday, 29 September 2000 06:07:43 UTC