Appearance
Fix Cache-Control max-age header on WooCommerce Cart and Checkout
Use this guide if the HTML response for your WooCommerce Cart or Checkout page includes Cache-Control: max-age=300 while Optimole is active.
In this article
Confirm you have this exact issue
This article applies only when Cache-Control: max-age=300 appears on the page HTML response of WooCommerce Cart or Checkout.
It does not apply when the header appears on an optimized image response, such as a file served from an Optimole image domain.
Update Optimole and clear page caches
- In WordPress, go to Plugins > Installed Plugins.
- Find Optimole and click Update now.
- After the update completes, clear every page cache layer that can serve old HTML responses (hosting cache, server cache, caching plugin, proxy/CDN cache, and browser cache).
For cache-clearing steps, follow How to clear the Cache in WordPress.
📝 Info: Clearing Optimole’s image cache only affects optimized image files. It does not clear stale page HTML responses from host, server, plugin, proxy, CDN, or browser caches.
Verify the header after a fresh request
- Open a private or incognito browser window.
- Request your Cart page and your Checkout page directly.
- Check the response headers for each page in your browser developer tools or header-checking method.
After updating Optimole and clearing page caches, Optimole no longer adds Cache-Control: max-age=300 to these dynamic WooCommerce page responses.
Another cache layer may still add a different Cache-Control header, and that can be valid.
If the header is still present
If Cache-Control: max-age=300 still appears after updating Optimole and requesting fresh Cart and Checkout responses, investigate external page-caching layers.
Check your host cache, Nginx or other server cache, WordPress page-caching plugin, proxy, or CDN configuration, and contact that provider if needed.
Optimole does not cache full HTML pages. For more details, see What happens when you deactivate Optimole?.
