comet-cache icon indicating copy to clipboard operation
comet-cache copied to clipboard

Sometimes a Double Redirect (Trailing Slash)

Open jaswrks opened this issue 8 years ago • 0 comments

The Apache Optimizations in Comet Cache are adding this line to the .htaccess file.

RewriteRule ^(.*)$ $1/ [QSA,L,R=301]

Not a problem, but if someone attempts to access a site over http:// and there is also an https:// redirect that needs to take place, this results in two redirects instead of one. Simply because the trailing slash redirect that Comet Cache uses doesn't specifically state what protocol to use, it just keeps the existing protocol. Which again, is fine, because an https:// redirect can occur next. However, if we change this to use the right protocol to begin with, we can shave one additional redirection off for some site owners that enforce https://.

Referencing internal/private ticket. https://secure.helpscout.net/conversation/459070945/2394/

jaswrks avatar Nov 06 '17 16:11 jaswrks