Hi @willstockstech,
You can use any online tool to validate the browser cache. Also, Browser Caching caches assets (css, js, images, etc). So you should be checking these files, not your main page/post. To cache the page/post you should enable Page Caching.
WordPress has a built-in system for page caching. For it to work, you need to activate Page Caching in Hummingbird, which will do the following:
1. Add a define( ‘WP_CACHE’, true ); to your wp-config.php file
2. Create an advanced-cache.php file inside the wp-content folder
This will allow WordPress to route the requests through the advanced-cache.php file first. That way Hummingbird can validate if the cache file is present and server it to the user.
Also, if you open up the developer tools in your browser and view the page source, you will see Hummingbird comments at the top and bottom of the HTML page (if it is a cached page).
Best regards,
Anton
Hi @vanyukov
Thanks for confirming. I know with WP Super Cache, I previously had it setup so that if someone visited a page (home page for example), it would hit the page cache for that page, then if they visited a post (they’d hit the page cache) and then returned to the home page, it wouldn’t send an extra request over to the server for a cached copy of the home page for a second time, despite that they were just there – I had it setup so that the home page was browser cached for 15 mins (IIRC) so the homepage load was a) immediate and b) didn’t result in another request out.
The only other thing I thought is I could do something like
is_home() {
header(“Cache-Control: max-age = 600”);
}
Would that work for my use case, do you know?
@willstockstech,
You can try to set the expiry time in browser caching setting for HTML to 1 hour. Don’t know if that will help or not, never really tested such a scenario. You might need some .htaccess rules for that. But Hummingbird does not have support for this yet. It is planned for the near future, though.
Best regards,
Anton
Ahhh, OK – In that case, I’ll wait for the near future as it sounds like Hummingbird has some extra useful features coming soon! 😀 😀