Each time a browser stacks
a website page it needs to download all the web records to legitimately show
the page. This incorporates all the HTML, CSS, JavaScript and images. Some pages may just comprise of a couple of
documents and be little in size - possibly a few kilobytes. For others however
there may be a ton of documents and these may signify be a few megabytes
extensive. These huge documents take more time to load and can be particularly
excruciating in case you're on a moderate web link (or a cell phone).
Google recommends using Expires
metadata and reminds us that - "It is essential to determine one of
Expires or Cache-Control max-age, and one of Last-Modified or Etag, for all
cacheable assets. It is repetitive to determine both Expires and Cache-Control:
max-age, or to point out both Last-Modified and Etag." as it were, utilize
only one system and the favored strategy is the one we have clarified on this
page.
<!-- leverage caching-->
<include expiration='7d' path='/assets/**.css'></include>
<include expiration='7d' path='/assets/**.js'></include>
<include expiration='15d' path='/assets/**.html'></include>
<include expiration='3d' path='/assets/**.gif'></include>
<include expiration='3d' path='/assets/**.jpeg'></include>
<include expiration='3d' path='/assets/**.jpg'></include>
<include expiration='3d' path='/assets/**.png'></include>
<!--end leverage-->
No comments