Hi Martin, thanks for the comment, glad you liked it.
it’s helped me to know cache well. thanks!
Cool, glad it was useful.
[…] http caching […]
You’re an angel!
All your articles will be cached up there in the Heavens for the enjoyment of the Gods
Thanks Dave, appreciate the warm comments!
Thanks a lot. I was searching to know about browser cache and then i finally got this. Once again Thanks a lot for your explaination.
[…] Very nice explanation about caching […]
ALRIGHT HERES MY PROBLEM.every time i try to go on youtube it says “400 bad request,your broswer sent a request that this server can not understand” youtube used to work…but now it ownt would should i do?and how do i fix it!should i learn how to control my broswer request?
[…] How To Optimize Your Site With HTTP Caching The following article has been taken from http://betterexplained.com/articles/how-to-optimize-your-site-with-http-caching/ […]
[…] Extracted from: http://betterexplained.com/articles/how-to-optimize-your-site-with-http-caching/ […]
[…] Following links will lead you to more detailed resources about .htaccess file customization. .htaccess Caching Resources How to Optimize Your Site With HTTP Caching Speed-up Sites With .htaccess Caching Data Compression Compress PHP, CSS, JS & Optimize Website Performance More Resources corz.org .htaccess tips Unix .htaccess Files http://wiki.dreamhost.com/Category:Htaccess http://wiki.dreamhost.com/Htaccess_tricks http://wiki.dreamhost.com/Mod_rewrite http://wiki.dreamhost.com/DEFLATE http://wiki.dreamhost.com/More_.htaccess_mod_rewrite_examples http://en.wikipedia.org/wiki/Htaccess […]
Thanks, this is a great article! One question – is there any way of getting around the max-age=0 request header that Firefox sends upon an F5 refresh? It renders all my .htaccess goodness useless. Thanks!
@Karen: Good question, I didn’t realize Firefox did that on an F5. It seems the intent is to look like an entirely new visitor upon an F5 request (i.e. I don’t have any versions of any files), so I’m not sure if there’s a way around it.
[…] 重要参考文章：How To Optimize Your Site With HTTP Caching […]
Great summary of caching, very informative and readable.
Thx for the detailed info.
But where i write the caching rules?
In a .htaccess file or in the header of the site or somewhere else?
Sorry, this is very new for me.
yes, I would also like to know where to place this info. I’m on an IIS server, so I know the rules are a little different. I am just having trouble understanding where to place, say, an http cache expires header for “logo.jpg”
This is an awesome tutorial, regardless-- THANK YOU!
How To Optimize Your Web Site…
How develop web page with best performance? Web Performance Best Practices. Best Practices for Speeding Up Your Web Site. Page Speed is an open-source Firefox/Firebug Add-on. For web sites, speed may be feature #1. Users hate waiting, we get frustrated…