Yes, you can increase cache lifetimes in website builders like WordPress, Wix, and others to improve site speed by reducing server load and browser requests. Methods include using caching plugins (e.g., LiteSpeed Cache, SpeedyCache), adjusting server-level settings (e.g., NGINX in Cloudways), or modifying {Link: .htaccess file https://www.siteground.com/kb/how-to-leverage-browser-caching/}.
Methods to Increase Cache Lifetimes:
WordPress Plugins: Use plugins like LiteSpeed Cache to set Browser Cache TTL (Time To Live) to 6 months or 1 year.
Wix Settings: Navigate to Page Settings, then Advanced Settings to manually control and extend cache lifetimes for individual pages.
Server Configuration (NGINX/Apache):
NGINX: Adjust static cache expiry in server settings (e.g., 30 days or more).
Apache: Add ExpiresByType directives to the .htaccess file for specific file types (e.g., fonts, images).
CDN/Edge Caching: Configure services like Cloudflare to cache static content for longer durations.
Recommended Cache Lifetimes:
Static Assets (Images, CSS, JS): 1 month to 1 year.
Public Pages: 1 hour to 2 weeks, depending on update frequency.
Short-lived Data: 30 seconds to 1 hour.
Increasing cache lifetimes helps by ensuring browsers store assets longer, reducing the number of requests to the server.
russell5607
2.6K Messages
•
26.3K Points
11 minutes ago
According to google:
{Link: .htaccess file https://www.siteground.com/kb/how-to-leverage-browser-caching/}.ExpiresByTypedirectives to the.htaccessfile for specific file types (e.g., fonts, images).0
0