Providing hashes of included files in HTML for caching?

It's basically a kernel of a good idea, but I don't think there's anything in HTML to support it. Might be able to kludge something together with JavaScript, I suppose.

It is not necessary and not a new idea at all. You can do this, using your example, omitting attr. "type" (for brevity): This has been practised using the file's timestamp instad of MD5 for a long time on quite a few sites, Rails supports it too, see here (look for "timestamp"), or here for an example with PHP.

Also see How to set up caching for css/js static properly.

Thanks for your answer, but appending a file hash or revision number to the address leads to a new request. The question is about providing the hash so that a browser knows when it is not necessary to hit the server. Say two sites use the same file, jQuery for example, but don't know of each other.

The hash should tell the browser that it's valid to use the content of site one's copy on site two, too, without hitting the server to read site two's copy (or its HTTP headers). Using a CDN mitigates the problem but creates an unneeded dependency. – Augustus Kling Aug 6 at 12:58.

Browsers will treat different case as different files since they don't know whether the server is doing the same. Therefore, the browser will not use its cache of style/screen. Css if it sees a link to Style/Screen.css.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions