Hey, everyone, and welcome back to the Knowledge Portal Video series.
Now, in the earlier lecture we discussed about the cache control header.
We also looked into the difference between two files where you have my c dot jpg, which does not have
any cache control headers and you have no store dot PNG where you have a cache control header.
So what a web server is saying to the client that this specific file no store dot PNG should not be
stored in the cache.
And when you talk about my c dot jpg, there is no explicitly mentioned by the web server on what to
do with this file.
So a browser may or may not store this file in the cache depending upon the browser caching configuration.
So let's do one thing.
Let's try this out in our browser so that we can know how exactly this would work.
So I'll copy this file and I'll paste it in my Google Chrome.
And if I press enter, you have a my c dot jpg file.
However, now if you go to about cache, let's try this out.
You will see there is a file called as MCD dot jpg, which is stored in the cache of my Google Chrome.
Perfect.
So now let's copy the no store dot PNG file.
I'll just copy the URL and let me paste it here.
And here you have no store dot PNG file.
Now again, this is an image file.
So let's open about cache again and let's verify whether we have MCD or JPG, but we could not find
the no store dot PNG.
However, just to verify if we are not missing out, I'll do a ctrl f to search and I'll say no store
dot PNG.
So you don't really have a file.
So this is just the Google dot Google result.
So just ignore this.
However, we are looking for a file.
You can actually copy the URL to get a better result.
So when you copy the MC dot jpg url, you are getting it.
However, when you copy the URL of no store dot PNG, let me check this out.
You see, you are not getting any result.
So one important thing to remember is that browser will store the result as a key pair.
Now I'll give you one simple example.
So I have about cache and if you look into the caching entries, so let me open one of them.
So you see the key is basically the URL, entire URL and this is the reason why the key is the entire
URL which is stored.
So, so when you just copy the URL, you can find the URL as stored as a key in the caching entry.
Okay.
I hope this specific concept is much more clear to you.
So let's do one thing.
This is a small lecture which I wanted to show you.
Go ahead and try this out from your site, see how exactly it will work.
I'll make sure that these files exist in the server so you can do a practice from your side as well.
And in the next lecture, what we will be doing is we will be configuring our own cache control headers
in our Docker engine that we have been working with.
So this is it about this lecture, small lecture, but I hope you got the overall concept related to
the Node store header and I look forward to see you in the next lecture.