66. • dynamic content from buy.points.com
• images from static1.points.com and
static2.points.com
67. • dynamic content from buy.points.com
• images from static1.points.com and
static2.points.com
• in IE6, 6 parallel downloads
68. • dynamic content from buy.points.com
• images from static1.points.com and
static2.points.com
• in IE6, 6 parallel downloads
• in FF5, 18 parallel downloads
69. • dynamic content from buy.points.com
• images from static1.points.com and
static2.points.com
• in IE6, 6 parallel downloads
• in FF5, 18 parallel downloads
• FTW
75. Caching 101
• Homepage, first visit: Must request all static
resources.
• Images/CSS/JS/etc stored in browser cache
76. Caching 101
• Homepage, first visit: Must request all static
resources.
• Images/CSS/JS/etc stored in browser cache
• Subsequent visits: Browser (somehow)
determines whether to reuse cached version
or re-request asset
77. Conditional GET
• browser: "I've got this asset in my cache, is it
the most up-to-date?!"
• server: "yup, it's good (304)"
• Or
• server: "no, here's a more up-to-date version"
80. Gotcha
• If none of these response headers are set, the
browser must determine if it can use the
cached version
81. Gotcha
• If none of these response headers are set, the
browser must determine if it can use the
cached version
• Unnecessarily re-requesting static assets
makes website slower
82. Gotcha
• If none of these response headers are set, the
browser must determine if it can use the
cached version
• Unnecessarily re-requesting static assets
makes website slower
• Conditional GETs still take up http requests