HTTP-iframe used on HTTPS-webpage due to caching
-
On a site which is accessible through both HTTP and HTTPS, if you visit the HTTP-version of a webpage prior to visiting the HTTPS version, the IFrame used on both pages uses an HTTP-URL (and hence is not displayed on the HTTPS webpage).
This appears to be caused by the caching mechanism used by the GoodReviews plugin itself: if I hack the ‘get_transient’ test in jhgrclasses.php::jhgrParseShortcode() to act as if no transient was stored, I get an HTTPS-IFrame on the HTTPS-webpage.
Probably one of 4 approaches should be used to fix this problem:
a) the protocol for the requested webpage should be included when determining the cache-ID to use
b) the IFrame should always use an https-URL
c) the result of the decision ‘http or https’ should not be included in what is cached
d) the cache-result should be modified after retrieval to change http-URLs to https if necessaryI am currently leaning towards approach b). Is there a drawback to this approach?
- The topic ‘HTTP-iframe used on HTTPS-webpage due to caching’ is closed to new replies.