Unless I'm missing a setting somewhere...my site is not Boosting SSL/HTTPS requests.

The entire site is HTTPS, so no switching is going on. This is for anonymous users.

Comments

greatmatter created an issue. See original summary.

greatmatter’s picture

Category: Bug report » Support request
Priority: Major » Minor
Status: Active » Closed (works as designed)

I should note I have the "Bypass the boost cache for ssl requests." unchecked.

greatmatter’s picture

Category: Support request » Bug report
Priority: Minor » Major
Status: Closed (works as designed) » Active
foxfabi’s picture

May check your $base_url in setting.php.

jazzper’s picture

Just a comment for people who happen to come to this issue to find a solution. I wrongly thought boosts cache wasn't generated because of a secure connection.

I also had the problem that boost stopped working when I switched from http to https. But this wasn't because of https. I tested at least for one page (I think I tested a couple of pages) if boost was working over http and it was. When I tested boost over https it was only generating the first page in boosts cache but not any following pages. This was because IP Geolocation Views & Maps module was setting a session cookie.

You can check if a session cookie is set in Firefox by going to preferences - privacy - remove individual cookies.

If a session cookie is there it probably is added by a contributed module. You can find out which module is setting this cookie by doing a db query: select * from sessions where sid = 'enter_content_number_of cookie'. See also this blog post.

For me boost is working great for anonymous users with the "Bypass the boost cache for ssl requests." unchecked over an https connection. Thanks for this GREAT module!

drubage’s picture

We are having the same issue but it does appear to be related to https. We have a site that is using Domain Access so there are 2 urls on the site. One of them we have using https and one is still using http. We have set the first domain to be https in Domain Access settings and also set boost to allow caching of SSL pages. However, nothing is getting cached for the https domain. The http domain continues to work properly. We have updated the .htaccess file with the correct values, any ideas!?

-Drew

bakinbox’s picture

Hi, this is a big issue but not solution is found nowhere, somebody has any news? Thanks

floown’s picture

°

floown’s picture

Hello,

I use https://www.drupal.org/project/httprl_spider to create my cache on a site with Boost installed. I have notice that some pages are not cached, specially all pages with blog/* (see in live at : https://www.publicitem.pro/blog ). I have remove the connexion box from blog pages, but it's the same.

The other pages are cached.

I have install SSL recently… and I had not such kind of problems before.

Numbatoo’s picture

So I just enabled SSL on my site and ran into this same issue. I recall when I setup Boost it tells you to add certain redirects in the .htaccess file (I dont use .htaccess, I added the code to my httpd.conf...but that is besides the point). If you look at the text it tells you to add, it specifically tells your server to SKIP boost cache if it comes from https request! I am no expert, but as soon as you comment out this line and restart server, boost cache started working for https with no problems. I have no idea why they tell you to add that in the documentation...maybe someone else can chime in on that one.

Here is the line to comment out: RewriteCond %{HTTPS} on [OR]

Here is the full code with the comment inserted:

### BOOST START ###

  # Allow for alt paths to be set via htaccess rules; allows for cached variants (future mobile support)
  RewriteRule .* - [E=boostpath:normal]

  # Caching for anonymous users
  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
  #RewriteCond %{HTTPS} on [OR]
  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  RewriteCond %{ENV:REDIRECT_STATUS} 200
  RewriteRule .* - [S=3]

  # GZIP
  RewriteCond %{HTTP:Accept-encoding} !gzip
  RewriteRule .* - [S=1]
  RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html,E=no-gzip:1]

  # NORMAL
  RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]

  ### BOOST END ###

Let me know if this works for you too.

floown’s picture

Hello Numbatoo,

I have not this line in my .htaccess

For my problem, I think that boost does not place the blog pages because there is a captcha on it.

web226’s picture

Thank you @Numbatoo your solution in #10 worked perfectly for me

Donit’s picture

Same issue on my end. I can't get it running on SSL, even when I skip " Bypass the boost cache for ssl requests."

Alex Oliver Perez’s picture

Thank you @Numbatoo, solution #10 work for me. At first cache was generated by boost but not being using by the site even when clearing the sessions. After commenting out the RewriteCond %{HTTPS} on [OR] which was suggested by @Numbatoo, the site is now loading a cache page with ssl installed. Thanks again

newswatch’s picture

In principle #10 works. @Numabtoo

But ALL images disappear :/

vensires’s picture

@newswatch maybe you load the images via http:// whereas you visit the website using https://? If you don't redirect all http requests to https, then if a visitor reaches your homepage using http and then another comes using https, the http links will be used in the source, resulting in mixed-content warnings. I may be wrong but please check to be sure.

If redirecting all http requests to https is a solution for you, you may use the following code in your .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on

# Redirect all traffic to https.
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

[...]
</IfModule>
newswatch’s picture

Thanks vensires. I followed your suggestion.

Plus: The hotlinks through Cpanel should be applicable for the https version too.

C-Logemann’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

I believe we don't have a bug here and mark this issue as support request and seems that comment #10 is fixing the main problems. So I will close this issue and give issue credit for this helpful comment.

C-Logemann’s picture

Status: Closed (works as designed) » Fixed
C-Logemann’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.