I have this code as the src in an img tag.
$this->getSkinUrl('images/mobile-logo.png',array('_forced_secure'=>true)); If I clear the cache, then immediately load a secure page, it loads with https and stays that way until the cache is cleared. If I load a http page right after clearing the cache, then it loads with http, and again stays that way until the cache is cleared. I have a cron job that refreshes the cache so I can't always be there to be the first person to load a page following the refresh. I have tried both '_forced_secure' and '_secure'. Just looking for a dependable way to load over https when the page is secure, without hard-coding it in or disabling caching. And I'm fine if it always loads over https, but mainly need it to when the page is secure so that my lock icon stays as green as cash.