Back to Insights
Guide

Acceleration guide: five cache rules that double your hit ratio

Query strings, cookies and cache keys: five common settings that noticeably cut origin traffic.

1. Ignore irrelevant query strings

Tracking parameters split one piece of content into many cache keys. Exclude them and your hit ratio jumps.

2. Long TTLs for static assets

Versioned JS, CSS and images can be cached for a year. Change the file name when you ship.

3–5. Cookies, headers and purging

Keep unrelated cookies out of the cache key, use Vary sparingly and purge by tag instead of the whole site.

With these five steps, most sites see origin traffic fall noticeably.

Ready to make your site faster?

Sign up for a free trial and our engineers will help you onboard and tune.