Cacheable Content Showcase

Various Types of Cacheable Content

This page demonstrates different types of content that can be cached by browsers and proxy servers. Check your browser's developer tools to see cache behavior.

Page Generated:
Cache-Control: Varies by content type (see below)
Total Assets: Calculating...

Images (Various Formats)

Images are typically cached for long periods. These use Cache-Control: public, max-age=86400, immutable

JPEG Image
JPEG Sample
First load: Network | Reload: Cache
PNG Image
PNG Sample
Transparent PNG with alpha channel
SVG Image
SVG Sample
Scalable vector graphics
WebP Image
WebP Sample
Modern format with better compression

Stylesheets and Scripts

CSS and JS files with different cache policies:

CSS File

This text uses cached CSS

test-styles.css?v=1
JavaScript
Loading JS...
test-script.js?v=1
CSS with Hash

Versioned with content hash

test-styles.a1b2c3.css
JS Module
ES6 Module
test-module.js

Web Fonts

Font files are cached for extended periods:

WOFF2 Font

Custom WOFF2 Font

Google Fonts

External font from CDN

Various Content Types

JSON Data (Local)
Loading...
JSON API Data
Loading...
XML Data
Loading...
Text File (.gitignore)
Plain Text
PDF Document
View PDF (W3C Sample)

Binary content type - opens in new tab

File size: 13KB

Cache Validation Methods

ETag Validation
ETag Test

Uses ETag for cache revalidation

Last-Modified
Last-Modified Test

Uses Last-Modified header

No-Cache
No Cache

Always fetches fresh (timestamp query)

Immutable
Immutable

Never revalidates (immutable flag)

How to Test Caching

  1. Open Developer Tools - Press F12 and go to Network tab
  2. Load this page - Note which resources are fetched from network
  3. Reload the page - Check which resources show "(from cache)" or status 304
  4. Force reload - Ctrl+Shift+R to bypass cache completely
  5. Check headers - Click on any resource to see Cache-Control headers

What to Look For: