Caching Analysis
The Caching Analysis feature examines how effectively HTTP caching is implemented across your website. This analysis helps you optimize the caching strategy for different content types, improve load times, and reduce server load.
Key Features
Section titled “Key Features”SiteOne Crawler provides comprehensive caching analysis from multiple perspectives:
- Caching by Content Type: Analyzes how different types of content (HTML, CSS, JS, images) are cached
- Caching by Domain: Compares caching implementations across different domains and subdomains
- Caching by Domain and Content Type: Cross-references domains with content types for a complete view
Analysis Tables
Section titled “Analysis Tables”The crawler generates detailed tables showing cache implementations across your site:
HTTP Caching by Content Type
Section titled “HTTP Caching by Content Type”Content type | Cache type | URLs | AVG lifetime | MIN lifetime | MAX lifetime-------------------------------------------------------------------------------------------------------HTML | Cache-Control + ETag + Last-Modified | 45 | 60 min | 60 min | 60 minImage | Cache-Control + ETag + Last-Modified | 11 | 12 mon | 12 mon | 12 monJS | Cache-Control + ETag + Last-Modified | 4 | 12 mon | 12 mon | 12 monCSS | Cache-Control + ETag + Last-Modified | 2 | 12 mon | 12 mon | 12 monJSON | No cache headers | 1 | - | - | -
HTTP Caching by Domain
Section titled “HTTP Caching by Domain”Domain | Cache type | URLs | AVG lifetime | MIN lifetime | MAX lifetime-------------------------------------------------------------------------------------------------------------example.com | Cache-Control + ETag + Last-Modified | 63 | 3 mon | 60 min | 12 monexample.com | Cache-Control | 3 | 60 min | 60 min | 60 minexample.com | No cache headers | 1 | - | - | -
HTTP Caching by Domain and Content Type
Section titled “HTTP Caching by Domain and Content Type”Domain | Content type | Cache type | URLs | AVG lifetime | MIN lifetime | MAX lifetime-----------------------------------------------------------------------------------------------------------------------example.com | HTML | Cache-Control + ETag + Last-Modified | 45 | 60 min | 60 min | 60 minexample.com | Image | Cache-Control + ETag + Last-Modified | 11 | 12 mon | 12 mon | 12 monexample.com | JS | Cache-Control + ETag + Last-Modified | 4 | 12 mon | 12 mon | 12 monexample.com | CSS | Cache-Control + ETag + Last-Modified | 2 | 12 mon | 12 mon | 12 monexample.com | JSON | No cache headers | 1 | - | - | -
Detected Cache Types
Section titled “Detected Cache Types”The analyzer identifies several caching strategies and combinations:
- Cache-Control: Resources using the standard Cache-Control header
- ETag: Resources using entity tag validation
- Last-Modified: Resources using modification date validation
- Cache-Control + ETag: Combined time-based and validation caching
- Cache-Control + ETag + Last-Modified: Comprehensive caching approach
- Expires: Resources using the older Expires header
- No cache headers: Resources without any caching directives
How It Works
Section titled “How It Works”The Caching Analyzer examines HTTP headers for each response, looking at:
- The presence and values of cache-related headers (
Cache-Control
,ETag
,Last-Modified
,Expires
) - Cache lifetime values (max-age, expires dates)
- Cache validation mechanisms (ETag, Last-Modified)
- Different caching strategies across content types and domains
Optimization Opportunities
Section titled “Optimization Opportunities”The analyzer helps identify several optimization opportunities:
- Missing Cache Headers: Resources that should be cached but aren’t
- Short Cache Times: Resources with unnecessarily short cache lifetimes
- Inconsistent Caching: Different cache settings for similar resources
- Suboptimal Cache Strategies: Resources using less efficient caching methods
Best Practices
Section titled “Best Practices”Based on the analysis, some recommended best practices include:
- Static Assets: Use long cache times (1 year) for versioned static assets (CSS, JS, images)
- HTML Content: Use shorter cache times (minutes to hours) with validation (ETag/Last-Modified)
- API Responses: Use appropriate cache control based on data volatility
- Consistent Strategy: Apply consistent caching policies across similar resource types
- Combined Approach: Use both expiration (Cache-Control) and validation (ETag) mechanisms
💡Further Development Ideas
Section titled “💡Further Development Ideas”Future enhancements to the caching analysis could include:
- Specific recommendations for optimal cache settings by content type
- Detection of common caching issues (too short, missing, conflicting)
- Estimation of bandwidth and server load savings from optimized caching
- Browser cache simulation to demonstrate the user experience impact
- CDN-specific caching recommendations