Hello, we have currently a magento store hosted on an nginx web server with page speed enabled. We're having a issue with rewrites as it seems with page speed enabled the rewrite will cause a protocol chain like https -> http -> https. We contacted the host support and they believe is a page speed bug because, when disabled, the issue doesn't occur.
Here is it a redirect test where you can see the double rewrite
> --------------------------------------------> 301 Moved Permanently> --------------------------------------------
Status: 301 Moved PermanentlyCode: 301Content-Type: text/html; charset=UTF-8Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, s-maxage=0Pragma: no-cacheContent-Length: 0Accept-Ranges: bytesDate: Tue, 14 Jun 2016 16:48:32 GMTConnection: closeServer: MageStack-MagentoOSStrict-Transport-Security: max-age=0
> --------------------------------------------> 301 Moved Permanently> --------------------------------------------
Status: 301 Moved PermanentlyCode: 301Content-Type: text/htmlContent-Length: 374Accept-Ranges: bytesDate: Tue, 14 Jun 2016 16:48:32 GMTConnection: closeServer: MageStack-MagentoOS
> --------------------------------------------> 200 OK> --------------------------------------------
Status: 200 OKCode: 200Content-Type: text/html; charset=UTF-8Vary: Accept-EncodingCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, s-maxage=0Set-Cookie: frontend=alcm52jd6gtijd4i588fll5f16; expires=Tue, 14-Jun-2016 17:48:32 GMT; path=/; domain=www.vashi.com; HttpOnlyPragma: no-cacheDate: Tue, 14 Jun 2016 16:48:33 GMTConnection: closeServer: MageStack-MagentoOSStrict-Transport-Security: max-age=0