SlideShare a Scribd company logo
The Most Frequently Used
Caching Headers
Table of Contents
2
Websites and Web Hosting
Caching and Web Caching
Advantages of Web Caching
Readiness of Content for
Caching
Caching Headers
Expires
Etag
Cache-Control
Last-Modified
Vary
Content-Length
 We visit numerous websites daily for various purposes but not many of us know how these are
made accessible over the Internet. So, let us delve into that first.
 A website consists of a collection of related web pages and content that exists under a single
domain name. Websites are made up of files that are stored on the servers of web hosting
service providers and delivered from there as per users’ requests. These web hosting
companies make websites accessible by providing the services and the technologies that are
needed for this purpose. Web hosting can be of many types, such as shared, dedicated, reseller,
cloud,WordPress,VPS etc.
 Usually the best web hosts in the field of hosting are referred to as the “Best Windows Hosting
Company” or as the “Linux Dedicated Hosting” or as the “Top Cloud Hosting Company”
depending on the type or types of hosting services that these excel in providing.
3
Websites and Web Hosting
 Caching
When copies of files are stored in a temporary storage location (cache), this is known as caching.
This makes it faster to access files. A web browser caches a website’s images, HTML files and
JavaScript, which helps to load a website more speedily.
 Web Caching
Web caching entails storing temporarily Web documents (Web pages and various other types of
Web multimedia). This serves to decrease server lag. A web cache system can be a computer
program or an appliance. It stores copies of documents that pass through it. The cache fulfils
subsequent requests when certain conditions are met and ensures that the origin server doesn’t get
overloaded.
4
Caching andWeb Caching
There are numerous benefits of web caching.These are mentioned below in no particular order.
 Enhanced page delivery speed
 Better responsiveness
 Reduction in the workload of backend server
 Protection against total outages (cached content can be delivered when servers are down)
 Availability of content regardless of network interruptions
 Better performance of the same hardware
 Reduction in network costs
5
Advantages ofWeb Caching
6
1-800-123 -8156
Whoa!That’s a big number, aren’t
you proud?
Despite it being possible for every type of content to be cached, not every content should be
cached. Based on its readiness for caching, web content can be classified into three categories. These
are mentioned below.
 Cache-friendly Content- This type of content doesn’t change frequently and is capable of
being cached for longer periods of time. Its examples are style sheets, media content, icons,
logos, images and JavaScript libraries.
 Moderately Cache-friendly Content- Such content changes regularly. It includes HTML
pages, JS and CSS that get modified frequently and all those content requests that need
authentication cookies.
 Content that shouldn’t be Cached- Due to security concerns certain types of contents
should not be cached at all. This category of content includes highly sensitive and confidential
content as well as content which is specific to users.
7
Readiness of Content for Caching
 The caching policy that is set by the owner of a particular content dictates its caching behavior.
Specific HTTP (Hypertext Transfer Protocol) headers are used for the purpose of articulating
these caching policies. The most frequently used caching headers for cache policy specification
are mentioned in the next few slides.
8
Caching Headers
 The “Expires” header is used to set a time in the future for a specific content with regard to its
expiration. When that time arrives and the content expires, any requests for that content will
be sent to the origin server. This header is limited in its scope and should be used as a fallback
option.
9
Expires
 The “Etag” header is made use of with cache validation. A unique Etag for an item can be
provided by the origin at the time of serving the content initially. A cache can send a content’s
Etag when there is a requirement to validate the content. The origin will either inform the
cache regarding the content being the same or it will send the updated content along with the
new Etag.
10
Etag
 “Cache-Control” is a modern replacement for the “Expires” header that implements a design
that is more flexible. It is well supported; hence, preferable to Expires. This header helps to set
various cache policy instructions. Multiple instructions are separated by commas in it.
 Some of the “Cache-Control” options that can be used to specify the caching policy for content
are, no-cache, public, private, no-store, max-age, s-maxage, no-transform, proxy-revalidate, must-
revalidate.
11
Cache-Control
 The “Last-Modified” header specifies the last time that a specific item had been modified. This
can be employed as part of the validation strategy for ensuring fresh content.
12
Last-Modified
 The “Vary” header is used to communicate to caches that there is a need to pay attention to
another header when deciding if a request is for the same item. The requested host as well as
the path to the resource are used by a cache as the key that aids in storing a cache item. The
Vary header is usually used to communicate to caches to key using the Accept-Encoding header.
This helps the cache to differentiate between uncompressed and compressed content.
13
Vary
 Despite it not being specifically involved in caching, it is important to set the “Content-Length”
header while defining caching policies. That is due to the fact that certain software won’t cache
content unless they are aware of the size of the content, in advance, for which they will require
to reserve space.
14
Content-Length
15
Thanks!
ANY QUESTIONS?
www.htshosting.org

More Related Content

What's hot

Caching go big or go home - ndc 2016
Caching   go big or go home - ndc 2016Caching   go big or go home - ndc 2016
Caching go big or go home - ndc 2016
Harald Schult Ulriksen
 
Caching Strategies
Caching StrategiesCaching Strategies
Caching Strategies
Michal Špaček
 
Caching for J2ee Enterprise Applications
Caching for J2ee Enterprise ApplicationsCaching for J2ee Enterprise Applications
Caching for J2ee Enterprise ApplicationsDebajani Mohanty
 
Difference between Reseller Hosting and Managed VPS Hosting
Difference between Reseller Hosting and Managed VPS HostingDifference between Reseller Hosting and Managed VPS Hosting
Difference between Reseller Hosting and Managed VPS Hosting
HTS Hosting
 
Different Plans for Availing Windows Dedicated Servers of HTS Hosting
Different Plans for Availing Windows Dedicated Servers of HTS HostingDifferent Plans for Availing Windows Dedicated Servers of HTS Hosting
Different Plans for Availing Windows Dedicated Servers of HTS Hosting
HTS Hosting
 
Shared Hosting: Economical Web Hosting Solution
Shared Hosting: Economical Web Hosting SolutionShared Hosting: Economical Web Hosting Solution
Shared Hosting: Economical Web Hosting Solution
HTS Hosting
 
Http caching
Http cachingHttp caching
Http caching
Samsarabbi
 
Caching technology comparison
Caching technology comparisonCaching technology comparison
Caching technology comparison
Rohit Kelapure
 
Scaling wordpress for high traffic
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high trafficRoshan Bhattarai
 
Roshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic siteswpnepal
 
Mini-Training: To cache or not to cache
Mini-Training: To cache or not to cacheMini-Training: To cache or not to cache
Mini-Training: To cache or not to cache
Betclic Everest Group Tech Team
 
JS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTINGJS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTING
Arulkumar
 
Magento Hosting Requirements and Recommendations
Magento Hosting Requirements and Recommendations           Magento Hosting Requirements and Recommendations
Magento Hosting Requirements and Recommendations
Magecom UK Limited
 
Webpage Caches - the big picture (WordPress too)
Webpage Caches - the big picture (WordPress too)Webpage Caches - the big picture (WordPress too)
Webpage Caches - the big picture (WordPress too)
Erich
 
Performance Optimization using Caching | Swatantra Kumar
Performance Optimization using Caching | Swatantra KumarPerformance Optimization using Caching | Swatantra Kumar
Performance Optimization using Caching | Swatantra KumarSwatantra Kumar
 
HTTP Caching ( HTTP 缓存策略 )
HTTP Caching ( HTTP 缓存策略 )HTTP Caching ( HTTP 缓存策略 )
HTTP Caching ( HTTP 缓存策略 )
Amber49
 
Bespoke service discovery with HAProxy and Marathon on Mesos
Bespoke service discovery with HAProxy and Marathon on MesosBespoke service discovery with HAProxy and Marathon on Mesos
Bespoke service discovery with HAProxy and Marathon on Mesos
Bart Spaans
 
Caching on the web
Caching on the webCaching on the web
Caching on the web
Jean Carlo Emer
 
JCache Using JCache
JCache Using JCacheJCache Using JCache
Caching In Java- Best Practises and Pitfalls
Caching In Java- Best Practises and PitfallsCaching In Java- Best Practises and Pitfalls
Caching In Java- Best Practises and Pitfalls
HARIHARAN ANANTHARAMAN
 

What's hot (20)

Caching go big or go home - ndc 2016
Caching   go big or go home - ndc 2016Caching   go big or go home - ndc 2016
Caching go big or go home - ndc 2016
 
Caching Strategies
Caching StrategiesCaching Strategies
Caching Strategies
 
Caching for J2ee Enterprise Applications
Caching for J2ee Enterprise ApplicationsCaching for J2ee Enterprise Applications
Caching for J2ee Enterprise Applications
 
Difference between Reseller Hosting and Managed VPS Hosting
Difference between Reseller Hosting and Managed VPS HostingDifference between Reseller Hosting and Managed VPS Hosting
Difference between Reseller Hosting and Managed VPS Hosting
 
Different Plans for Availing Windows Dedicated Servers of HTS Hosting
Different Plans for Availing Windows Dedicated Servers of HTS HostingDifferent Plans for Availing Windows Dedicated Servers of HTS Hosting
Different Plans for Availing Windows Dedicated Servers of HTS Hosting
 
Shared Hosting: Economical Web Hosting Solution
Shared Hosting: Economical Web Hosting SolutionShared Hosting: Economical Web Hosting Solution
Shared Hosting: Economical Web Hosting Solution
 
Http caching
Http cachingHttp caching
Http caching
 
Caching technology comparison
Caching technology comparisonCaching technology comparison
Caching technology comparison
 
Scaling wordpress for high traffic
Scaling wordpress for high trafficScaling wordpress for high traffic
Scaling wordpress for high traffic
 
Roshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sitesRoshan Bhattarai: Scaling WordPress for high traffic sites
Roshan Bhattarai: Scaling WordPress for high traffic sites
 
Mini-Training: To cache or not to cache
Mini-Training: To cache or not to cacheMini-Training: To cache or not to cache
Mini-Training: To cache or not to cache
 
JS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTINGJS BASICS JAVA SCRIPT SCRIPTING
JS BASICS JAVA SCRIPT SCRIPTING
 
Magento Hosting Requirements and Recommendations
Magento Hosting Requirements and Recommendations           Magento Hosting Requirements and Recommendations
Magento Hosting Requirements and Recommendations
 
Webpage Caches - the big picture (WordPress too)
Webpage Caches - the big picture (WordPress too)Webpage Caches - the big picture (WordPress too)
Webpage Caches - the big picture (WordPress too)
 
Performance Optimization using Caching | Swatantra Kumar
Performance Optimization using Caching | Swatantra KumarPerformance Optimization using Caching | Swatantra Kumar
Performance Optimization using Caching | Swatantra Kumar
 
HTTP Caching ( HTTP 缓存策略 )
HTTP Caching ( HTTP 缓存策略 )HTTP Caching ( HTTP 缓存策略 )
HTTP Caching ( HTTP 缓存策略 )
 
Bespoke service discovery with HAProxy and Marathon on Mesos
Bespoke service discovery with HAProxy and Marathon on MesosBespoke service discovery with HAProxy and Marathon on Mesos
Bespoke service discovery with HAProxy and Marathon on Mesos
 
Caching on the web
Caching on the webCaching on the web
Caching on the web
 
JCache Using JCache
JCache Using JCacheJCache Using JCache
JCache Using JCache
 
Caching In Java- Best Practises and Pitfalls
Caching In Java- Best Practises and PitfallsCaching In Java- Best Practises and Pitfalls
Caching In Java- Best Practises and Pitfalls
 

Similar to The Most Frequently Used Caching Headers

Caching in Drupal 8
Caching in Drupal 8Caching in Drupal 8
Caching in Drupal 8
valuebound
 
[Hanoi-August 13] Tech Talk on Caching Solutions
[Hanoi-August 13] Tech Talk on Caching Solutions[Hanoi-August 13] Tech Talk on Caching Solutions
[Hanoi-August 13] Tech Talk on Caching Solutions
ITviec
 
Caching and Its Main Types
Caching and Its Main TypesCaching and Its Main Types
Caching and Its Main Types
HTS Hosting
 
HCLT Whitepaper: Accelerated Web Content Delivery
HCLT Whitepaper: Accelerated Web Content DeliveryHCLT Whitepaper: Accelerated Web Content Delivery
HCLT Whitepaper: Accelerated Web Content Delivery
HCL Technologies
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
ProdigyView
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cache
Marc Cortinas Val
 
Caching in drupal
Caching in drupalCaching in drupal
Caching in drupal
Vivek Panicker
 
Sitecore Personalization on websites cached on CDN servers
Sitecore Personalization on websites cached on CDN serversSitecore Personalization on websites cached on CDN servers
Sitecore Personalization on websites cached on CDN servers
Anindita Bhattacharya
 
Web browser architecture.pptx
Web browser architecture.pptxWeb browser architecture.pptx
Web browser architecture.pptx
BabarHussain607332
 
Rails Caching: Secrets From the Edge
Rails Caching: Secrets From the EdgeRails Caching: Secrets From the Edge
Rails Caching: Secrets From the Edge
Fastly
 
Rails Caching Secrets from the Edge
Rails Caching Secrets from the EdgeRails Caching Secrets from the Edge
Rails Caching Secrets from the Edge
Michael May
 
Cdn technology overview
Cdn technology overviewCdn technology overview
Cdn technology overview
Yoohyun Kim
 
Module 06_Cloud Backup and Solutions.pptx
Module 06_Cloud Backup and Solutions.pptxModule 06_Cloud Backup and Solutions.pptx
Module 06_Cloud Backup and Solutions.pptx
SproohaAthalye
 
WordPress at Peak Performance (Radio Edit)
WordPress at Peak Performance (Radio Edit)WordPress at Peak Performance (Radio Edit)
WordPress at Peak Performance (Radio Edit)
jaredwsmith
 
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICESA COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
ijcsit
 
Web Site Optimization
Web Site OptimizationWeb Site Optimization
Web Site OptimizationSunil Patil
 
Web site optimization
Web site optimizationWeb site optimization
Web site optimizationSunil Patil
 
Django book15 caching
Django book15 cachingDjango book15 caching
Django book15 cachingShih-yi Wei
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppt
hackday08
 

Similar to The Most Frequently Used Caching Headers (20)

Caching in Drupal 8
Caching in Drupal 8Caching in Drupal 8
Caching in Drupal 8
 
[Hanoi-August 13] Tech Talk on Caching Solutions
[Hanoi-August 13] Tech Talk on Caching Solutions[Hanoi-August 13] Tech Talk on Caching Solutions
[Hanoi-August 13] Tech Talk on Caching Solutions
 
Caching and Its Main Types
Caching and Its Main TypesCaching and Its Main Types
Caching and Its Main Types
 
HCLT Whitepaper: Accelerated Web Content Delivery
HCLT Whitepaper: Accelerated Web Content DeliveryHCLT Whitepaper: Accelerated Web Content Delivery
HCLT Whitepaper: Accelerated Web Content Delivery
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cache
 
Chapter 23
Chapter 23Chapter 23
Chapter 23
 
Caching in drupal
Caching in drupalCaching in drupal
Caching in drupal
 
Sitecore Personalization on websites cached on CDN servers
Sitecore Personalization on websites cached on CDN serversSitecore Personalization on websites cached on CDN servers
Sitecore Personalization on websites cached on CDN servers
 
Web browser architecture.pptx
Web browser architecture.pptxWeb browser architecture.pptx
Web browser architecture.pptx
 
Rails Caching: Secrets From the Edge
Rails Caching: Secrets From the EdgeRails Caching: Secrets From the Edge
Rails Caching: Secrets From the Edge
 
Rails Caching Secrets from the Edge
Rails Caching Secrets from the EdgeRails Caching Secrets from the Edge
Rails Caching Secrets from the Edge
 
Cdn technology overview
Cdn technology overviewCdn technology overview
Cdn technology overview
 
Module 06_Cloud Backup and Solutions.pptx
Module 06_Cloud Backup and Solutions.pptxModule 06_Cloud Backup and Solutions.pptx
Module 06_Cloud Backup and Solutions.pptx
 
WordPress at Peak Performance (Radio Edit)
WordPress at Peak Performance (Radio Edit)WordPress at Peak Performance (Radio Edit)
WordPress at Peak Performance (Radio Edit)
 
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICESA COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
A COMPARISON OF CACHE REPLACEMENT ALGORITHMS FOR VIDEO SERVICES
 
Web Site Optimization
Web Site OptimizationWeb Site Optimization
Web Site Optimization
 
Web site optimization
Web site optimizationWeb site optimization
Web site optimization
 
Django book15 caching
Django book15 cachingDjango book15 caching
Django book15 caching
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppt
 

More from HTS Hosting

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
HTS Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS Hosting
HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
HTS Hosting
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
HTS Hosting
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
HTS Hosting
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
HTS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
HTS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and More
HTS Hosting
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
HTS Hosting
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
HTS Hosting
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
HTS Hosting
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
HTS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
HTS Hosting
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
HTS Hosting
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans
HTS Hosting
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting Plans
HTS Hosting
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
HTS Hosting
 

More from HTS Hosting (20)

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and More
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting Plans
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
 

Recently uploaded

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

The Most Frequently Used Caching Headers

  • 1. The Most Frequently Used Caching Headers
  • 2. Table of Contents 2 Websites and Web Hosting Caching and Web Caching Advantages of Web Caching Readiness of Content for Caching Caching Headers Expires Etag Cache-Control Last-Modified Vary Content-Length
  • 3.  We visit numerous websites daily for various purposes but not many of us know how these are made accessible over the Internet. So, let us delve into that first.  A website consists of a collection of related web pages and content that exists under a single domain name. Websites are made up of files that are stored on the servers of web hosting service providers and delivered from there as per users’ requests. These web hosting companies make websites accessible by providing the services and the technologies that are needed for this purpose. Web hosting can be of many types, such as shared, dedicated, reseller, cloud,WordPress,VPS etc.  Usually the best web hosts in the field of hosting are referred to as the “Best Windows Hosting Company” or as the “Linux Dedicated Hosting” or as the “Top Cloud Hosting Company” depending on the type or types of hosting services that these excel in providing. 3 Websites and Web Hosting
  • 4.  Caching When copies of files are stored in a temporary storage location (cache), this is known as caching. This makes it faster to access files. A web browser caches a website’s images, HTML files and JavaScript, which helps to load a website more speedily.  Web Caching Web caching entails storing temporarily Web documents (Web pages and various other types of Web multimedia). This serves to decrease server lag. A web cache system can be a computer program or an appliance. It stores copies of documents that pass through it. The cache fulfils subsequent requests when certain conditions are met and ensures that the origin server doesn’t get overloaded. 4 Caching andWeb Caching
  • 5. There are numerous benefits of web caching.These are mentioned below in no particular order.  Enhanced page delivery speed  Better responsiveness  Reduction in the workload of backend server  Protection against total outages (cached content can be delivered when servers are down)  Availability of content regardless of network interruptions  Better performance of the same hardware  Reduction in network costs 5 Advantages ofWeb Caching
  • 6. 6 1-800-123 -8156 Whoa!That’s a big number, aren’t you proud?
  • 7. Despite it being possible for every type of content to be cached, not every content should be cached. Based on its readiness for caching, web content can be classified into three categories. These are mentioned below.  Cache-friendly Content- This type of content doesn’t change frequently and is capable of being cached for longer periods of time. Its examples are style sheets, media content, icons, logos, images and JavaScript libraries.  Moderately Cache-friendly Content- Such content changes regularly. It includes HTML pages, JS and CSS that get modified frequently and all those content requests that need authentication cookies.  Content that shouldn’t be Cached- Due to security concerns certain types of contents should not be cached at all. This category of content includes highly sensitive and confidential content as well as content which is specific to users. 7 Readiness of Content for Caching
  • 8.  The caching policy that is set by the owner of a particular content dictates its caching behavior. Specific HTTP (Hypertext Transfer Protocol) headers are used for the purpose of articulating these caching policies. The most frequently used caching headers for cache policy specification are mentioned in the next few slides. 8 Caching Headers
  • 9.  The “Expires” header is used to set a time in the future for a specific content with regard to its expiration. When that time arrives and the content expires, any requests for that content will be sent to the origin server. This header is limited in its scope and should be used as a fallback option. 9 Expires
  • 10.  The “Etag” header is made use of with cache validation. A unique Etag for an item can be provided by the origin at the time of serving the content initially. A cache can send a content’s Etag when there is a requirement to validate the content. The origin will either inform the cache regarding the content being the same or it will send the updated content along with the new Etag. 10 Etag
  • 11.  “Cache-Control” is a modern replacement for the “Expires” header that implements a design that is more flexible. It is well supported; hence, preferable to Expires. This header helps to set various cache policy instructions. Multiple instructions are separated by commas in it.  Some of the “Cache-Control” options that can be used to specify the caching policy for content are, no-cache, public, private, no-store, max-age, s-maxage, no-transform, proxy-revalidate, must- revalidate. 11 Cache-Control
  • 12.  The “Last-Modified” header specifies the last time that a specific item had been modified. This can be employed as part of the validation strategy for ensuring fresh content. 12 Last-Modified
  • 13.  The “Vary” header is used to communicate to caches that there is a need to pay attention to another header when deciding if a request is for the same item. The requested host as well as the path to the resource are used by a cache as the key that aids in storing a cache item. The Vary header is usually used to communicate to caches to key using the Accept-Encoding header. This helps the cache to differentiate between uncompressed and compressed content. 13 Vary
  • 14.  Despite it not being specifically involved in caching, it is important to set the “Content-Length” header while defining caching policies. That is due to the fact that certain software won’t cache content unless they are aware of the size of the content, in advance, for which they will require to reserve space. 14 Content-Length