Protocol independant caching
-
Hi there,
Great plugin, makes great performance improvements and we’re looking at continued use of this plugin going forward, so, great work!
That said however, we’ve recently come across an issue where a site is accessible on both HTTP:// and HTTPS:// but when visited on HTTP:// first, Hyper Cache does the magic and caches it, great, no worries there.
However when you then go to the HTTPS:// version of the site, the cached page is filled with HTTP:// URL’s for site assets, CSS, JavaScript, etc which then causes some web browsers to drop references like those because of the primary page location being in https://.
While there is a very straight forward way to fix this on our end by fully forcing HTTPS:// for the site to all visitors, we’d prefer to avoid doing this if this can be fixed in the plugin itself instead.
Couple of ways we think this could be done is to either:
1) Cache HTTP and HTTPS pages separately. Downside for this being the up to 100% additional caching space and data needed.
2) Before the cache is created, adjust URL’s to the current site and / or known (maybe using a manually set list of known domains for this) to be protocol independant. e.g. from “https://www.example.com/my.js” to “//www.example.com/my.js”
3) Build another plugin that processes links before Hyper Cache kicks in to perform the solution 2 work instead.
Let us know if this is something that is likely to be built in / added to Hyper Cache so we can plan around that for upcoming WordPress site developments.
Thanks,
Bison Grid.
- The topic ‘Protocol independant caching’ is closed to new replies.