Hello @joelmellin,
Upon activating the plugin the following line is inserted into your .htaccess file:
#SGO Unset Vary
Header unset Vary
#SGO Unset Vary END
The ‘Vary’ header is removed from HTTP responses for several reasons: to correct an incorrect configuration that hinders efficient caching, to optimize cache performance by ensuring that content is stored and served effectively when it doesn’t vary based on request headers, and to simplify caching logic when the Vary
header is not necessary or is too complex to manage.
The error “Could not connect to the WordPress REST API” typically indicates a problem with reaching or communicating with the REST API provided by a WordPress site. While the Vary
header can influence caching behavior, it is less likely to be the direct cause of connectivity issues with the WordPress REST API.
To troubleshoot the problem, you should check the server error logs, ensure that permalinks are set correctly, deactivate security plugins temporarily, and verify that there are no conflicts with themes or plugins. If the issue persists, checking the server’s configuration for handling HTTP requests and responses is something we recommend you to do.
Best regards,
Georgio Ganchev
SiteGround.com