Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I using Google Chrome, and when I enabled the Boost module, the guests only see blank pages in many cases. Refreshing the page with F5 resolves the problem, but can not be expected to refresh on each page, when the guests visiting the pages first time. The Boost setup is the default, and "view source" is works fine in Chrome. Just the normal view is a blank screen.
Comments
Comment #1
vasikesubscribe
Comment #2
aze2010 CreditAttribution: aze2010 commentedsubscribing
1. Every Cache completly cleared
2. Activate Boost
3. With Chrome surfing my homepage (no cache since now)
4. The Page (non cached) gets white (no display)
5. After Refresh (Cache is generated from first visit with the white/blank page)
6. Chrome now display the page
This only happen in Chrome and when there is no cached-version.
If there is a cached (boost) cached version, chrome works like any other browser.
What can it be?
Many regards
Alex
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedIf you go into Chrome and use Tools > Developer tools until you get a white page (unfortunately you have to turn it on on the site so you may get a page display because of the reload).
Under the headers tab (you may have to scroll down past the "request"), what is the response header for a blank page ? and in "response" (without reloading) do you have nothing ?
It could possibly be that chrome is not interpreting the cached page as text/html, are your pages zipped ? in the response headers it could have content-encoding to tell chrome.
Comment #4
bgm CreditAttribution: bgm commentedCan you check in your .htaccess to make sure that it has:
Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
Chrome tends to be very aggressive on caching and if "no-store" is not there, it will cache anyway.
Although there is probably another issue with gzip causing the cache to be invalid for some reason.
Comment #5
budgetstockphoto CreditAttribution: budgetstockphoto commentedI have the exact same issue with boost 6.x-1.18 on drupal core 6.28
i've come to the conclusion this is likely to be platform related, ive got the same boost drupal configuration at a different cpanel host and all is fine. Ive spent an hour or so playing about disabling deflate, poking at various stuff and I'm at a loss.
Interestingly although chrome displays the white screen if you press ctrl-u the source is displayed, I'm trying this on a page that boost is not caching (firebug says the page is response 200, but Status column shows (failed), but in the network tab it then proceeds to download the css files and js included in the header of the 'failed page' so it must be loading the page (?)
I'm thinking that my somewhat out of date debian might be to blame?
I'm also somewhat puzzled by what exactly is gzipping this page, i've disabled all of the gzip options in "performance". The site where I don't see this issue has the same config and it does not return a "Content-Encoding:gzip" for a 'first page load" (i.e. an uncashed page).
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAlmost certainly it''s the zipping and when gzip was placed into the 7.x dev tree it had to be removed because it was removing a few bytes from the page output, #1416214-14: Basic gzip support for 7x the difference in configurations were for mod_mime and also using the Forcetype .htaccess directive, so it is very "installation" specific rather than "distribution" specific.
What is probably gzipping your page is mod_deflate or mod_gzip in the virtual host configuration, YMMV, in general chrome is particularly sensitive to badly gzipped files and displays nothing whereas firefox does better but can display garbage. It's almost impossible to debug as the compressed output is never visible, being decompressed immediately by the browser. You could compare .gz page sizes with the page on server and the size of output in firebug, and check the config of apache modules if you have root access using
apachectl -t -D DUMP_MODULES
In your cache you should remove any .gz file and you'll probably find that there is a difference. You might also want to check that the .htaccess has been updated after you've turned off all the gzip options to rule boost out of the equation.