cache web browser code example

Example 1: what is a browser cache

When you visit a website, your browser takes pieces of
the page and stores them on your computer's hard drive.
Some of the assets your browser will store are:

Images - logos, pictures, backgrounds, etc.
HTML
CSS
JavaScript
In short, browsers typically cache what are known as 
"static assets" - parts of a website that do not change
from visit to visit.

Example 2: empty cache

a hard reload option
clears the browser cache before the hard reload is activated.
hard reloads usually only bypasses the cache. 
but because web pages may download additional content 
using JavaScript not part of the initial page load
that may be cached and loaded from cache 
even if you do a hard reload.

Tags:

Html Example