How To Optimize Your Site With HTTP Caching

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 :slight_smile:

Thanks Dave, appreciate the warm comments! :slight_smile:

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 […]

[…] Get new articles by email: About (Contact Kalid) Learning shouldn’t hurt. Let’s share the insights that made difficult ideas click. Read more… Projects A fast, easy and surprisingly fun calculator . Get answers in real-time and even embed a calculation in your blog. Popular Articles | All Posts Starting Ruby on Rails: What I Wish I KnewA Visual, Intuitive Guide to Imaginary NumbersSpeed Up Your Javascript Load TimeDemystifying the Natural Logarithm (ln)How To Measure Any Distance With The Pythagorean TheoremAn Intuitive Guide To Exponential Functions & EHow To Optimize Your Site With HTTP CachingEasy Permutations and CombinationsHow To Optimize Your Site With GZIP CompressionA Visual Guide to Version Control Categories General Guides Programming Web Observations Math Calculus Vector Calculus Personal Development Business Like it? Try All articles, RSS Feed or Email Subscription | Idea or suggestion? Contact me copyright © 2009 Kalid Azad var sc_project=2152111; var sc_invisible=1; var sc_partition=19; var sc_security=“01b7b28e”; […]

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.

Regards, Michael

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!

-Jess

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…