Closed (duplicate)
Project:
Boost
Version:
7.x-1.0-beta2
Component:
Caching logic
Priority:
Normal
Category:
Support request
Reporter:
Created:
4 Mar 2013 at 08:42 UTC
Updated:
12 Aug 2014 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedPM me the url and I'll have a quick look later on today.
Philip.
Comment #2
wanneng commentedI have found the reason: I have enabled css_watch module enabled. Wenn I dsable it, front-page is OK.
But why only front-page dosen't work. Normally css_watch works for all page.
Comment #3
Anonymous (not verified) commentedI believe you have the solution (turn it off, enable css and js aggregation though in the performance/ cache section).
It's not really for me to guess why a module with 25 users that has not been developed since 2011 doesn't work, there's probably something on the page that sets a cookie or any one of the rewrite conditions that disable boost.
Comment #4
wanneng commentedAnother reason for "Front page not loaded from cache":
I have two server: xampp(local) and ubuntu(live). In live server is OK (Front page load from cache), but in local it dosent work.
I think, it is the different server configuration, perhaps apache or php configuration, but I dont know exactly, where. Can you help me?
Comment #5
Anonymous (not verified) commentedThe differences between a windows and linux set up are so large that it requires a methodical comparison of everything, from the apache configuration, through to php. The thing that jumps out immediately is the difference between / and \ in the filesystems.
You don't say if the windows machine actually creates the cache.
Since you have control of the windows machine's configuration, then the first place to start would be going to the apache website and turning on the ReWrite log and the level (has to be in server configuration, not .htaccess), so that you can work out how the boost .htaccess rules are working and what the server is looking for in the cache. On any machine, finding _.html is easy (the front page for localhost) index_.html should also be easy. Your windows machine may have an entirely differing set of variables for DOCUMENT_ROOT and so need a very different .htaccess file.
What is helpful in a ReWrite Log is that it gets big fast so turn it up the loglevel slowly until you can find rules matching html where "pass through" is a matching correct rule, on a linux system this is like this (I've never seen it on windows)
Comment #6
Bryce74 commentedHello, I really hope you can help me!
Boost is working fine, the front page is cached, but it does not get loaded from the cache. All other pages work fine.
I use drupal 7.
I also tried to set another page as front page, but this does not work either.
What can I do?
Comment #7
Anonymous (not verified) commentedSo you have a page in your cache/normal/domain.com directory like _.html ?
This cached page is never sent through to anonymous users ?
You have looked at the page source and there is no boost comment on the last line of the html?
There are no Rewrite Rules in your server configuration that like a virtual host file that could be overriding .htaccess?
Check that your boost rules are after RewriteBase in the .htaccess file.
If you are using the drupal redirection to either add or remove www like this
that this is before the RewriteBase line and the boost code.
Check that your front page does not set a cookie by visiting it in firefox with firebug installed (this is the best option as the browser cache will be 100% disabled and sometimes because boost sends out cache headers the page may be generated but your browser will pay attention to the formerly received headers and show you the first non-boot version) , if you have a DRUPAL_UID cookie then boost will disable and any number of modules can set a cookie.
Comment #8
antims commentedSame problem with me.
Comment #9
antims commentedAnd the URL is:http://XXXXX.cn.Please help me.Thank you very much.
Comment #10
Anonymous (not verified) commentedI can't see boost running anywhere on the site, nor can I find the cache/normal/nnua.com directory structure. Please provide further information. Also the server identifies itself as Tengine that I am unfamiliar with.
Comment #11
antims commentedI've message you the admin username and password.Please take a look.
Best regards.
Comment #12
antims commentedAnd if necessary,I'll install FTP for you.
Comment #13
Anonymous (not verified) commentedIt's not a wise idea to just post details to public forums. Also we don't run a free fix it service here :)
Comment #14
XerraX commentedSure thing, but may be you can find the problem. Since there are more people searching for a solution.
Comment #15
Anonymous (not verified) commentedThe site's in Chinese with blocks made up of external links for a non-native speaker it would be next to impossible.
Then there is the legal side of having to break the server to fix it does not bear thinking about. The only thing I am sure about is that the drupal_uid cookie is not being set, but I would personally not access someone else's system change their .htaccess files, delve into their directory structure and check their virtual hosting configuration without any form of cover, plus I don't know the web server they are running.
Comment #16
antims commentedI commented those lines,but the problem still exists.I guess it may caused by this Regular Expressions Statement:
Comment #17
antims commentedI solved this problem Temporarily.Thank you everybody.
The value of %{REQUEST_URI} in my frontpage is:"/index.php",but the value of $_server["REQUEST_URI"] is "/",why not the same?
I added those lines to .htaccess,and it works nice:
Comment #17.0
antims commentedchange text error.
Comment #18
standalonus commentedI have the same problem. Other pages cached but not the front page. I know this by checking "
I have Drupal 7.28 and Boost 7.x-1.0 installed.
on Drupal Status report "Boost installed correctly, should be working if properly configured".
checked .htaccess file,nothing special.
I can see cache/normal/mysebsite/_.html file. But this file got refreshed with new time stamp when I access front page every time.
Tried all above suggestions with no luck.
attached .htaccess file,please help.
Comment #19
sijuwi commentedTried #17 and many other options but my frontpage is still not served.
Comment #20
Anonymous (not verified) commentedHave you tried dev, regenerating the .htaccess file and then uncommenting the sections specific to apache 2.4.x ? what we have found is that there is a bug in some versions of apache and though it was patched some hosting services/ distributions are still using the buggy version.
Comment #21
sijuwi commentedHuge thank you, that did the job!
Comment #22
Anonymous (not verified) commentedDuplicate of #2078595: Apache 2.4 Won't Serve Frontpage Cache File (_.html) after 2.2 Upgrade