Free tool · runs in your browser
Caching Generator (.htaccess / Nginx)
Images, fonts and scripts don’t need to be reloaded on every visit. With the right cache headers the browser serves them from its own storage, and compression halves the rest. The generator builds the block for your web server.
Caching Generator
Set up browser caching and compression
Pick your server, set the lifetimes, copy the rules. Everything runs in your browser.
Note
- WordPress caching plugins often write these rules themselves already – don't duplicate them.
- Apache: paste the block into
.htaccess– above the# BEGIN WordPressblock.
Your input never leaves the browser. The rules are generated locally via JavaScript.
Everything is generated locally in your browser. Nothing you enter is transmitted to our server.
How it works
- 1 Pick your web server and cache lifetimes per file type
- 2 Enable gzip or brotli
- 3 Paste the block into .htaccess or your Nginx config
Guides for this tool
- Setting Up Caching in WordPress the Right Way Caching is the biggest performance lever in WordPress – if you understand the layers. Server vs. plugin cache, object cache and browser cache without buzzwords.
- Core Web Vitals for WordPress: Realistically Under the Thresholds Improve Core Web Vitals in WordPress: concrete measures for LCP, INP and CLS – caching, images, fonts. With real field data and hands-on guidance.
Related Services
More tools
- wp-config.php Generator
- .htaccess Password Protection Generator
- Redirect Generator (301)
- PHP Limits Generator
- Restore WordPress Admin Access
- Cron Generator for WordPress
- SQL Generator: WordPress Database Cleanup
- Database Connection Test
- robots.txt for AI Crawlers
- llms.txt Generator
- Maintenance Page Generator
- Backup Planner
- Base64 Encode and Decode
- HTTP Status Checker
- All tools →