Browsing caching of css and javascript files?

By default a browser won't cache CSS or JS file served via PHP or any other dynamic server-side language. The HTTP response headers generated by PHP will declare the file as last updated at the current date. In order to have clients cache the response, you have to manually implement a conditional GET Here's a guide.It's for RSS, but applies for any HTTP request fishbowl.pastiche.org/2002/10/21/http_co....

By default a browser won't cache CSS or JS file served via PHP or any other dynamic server-side language. The HTTP response headers generated by PHP will declare the file as last updated at the current date. In order to have clients cache the response, you have to manually implement a conditional GET.

Here's a guide. It's for RSS, but applies for any HTTP request. fishbowl.pastiche.org/2002/10/21/http_co....

Different browsers have slightly different behaviors - most noticeably when dealing with ambiguous/limited caching headers emanating from the server. If you send a clear signal, the browsers obey, virtually all of the time. The greatest variance by far, is in the default caching configuration of different web servers and application servers.

Some (e.g. Apache) are likely to serve known static file types with HTTP headers encouraging the browser to cache them, while other servers may send no-cache commands with every response - regardless of filetype. So, first off, read some of the excellent HTTP caching tutorials out there. Next install and fiddle around with Firebug and the Live HTTP Headers add-on , to find out which headers your server is actually sending.

Then read your web server docs to find out how to tweak them to perfection (or talk your sysadmin into doing it for you).

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