Imagine a mouth-watering steak, with baked potatoes on the side and a rich, brown gravy poured over it. Got the picture in your head? Feeling hungry? Good… read on.
To get to that steak, there are some steps you have to take. You can’t just wish it into existence. The steps you need to take are called a recipe. You are the cook. And it takes TIME before you can go from deciding you want a steak to eating the damn thing.
Your website works a bit like that. Each page has a “recipe” or a set of steps that the cook (the server) has to perform in order to make and present the meal (your web page). And every time you look at a page on your website, it takes some TIME for all this to happen.
But you’re hungry. So you wanna eat faster. So to make sure you can eat sooner, you might pre-cook the meal and just re-heat it when you’re hungry, right?
That’s kinda how file-caching works on your website. The steps to make the page have all been done and the page is ready to be served from a file. No need to wait for “cooking”.
But the meal is stored in the kitchen and you’re in the lounge, so it still takes time for you to get up and go get it. And you’re dying of hunger. You don’t wanna walk to the kitchen. You need to eat NOW!
What if I told you there was a faster way to get your meal? What if I said you could just “imagine” the food and it would be there, in front of you, ready to enjoy?