Closed (fixed)
Project:
Boost
Version:
5.x-1.x-dev
Component:
Apache integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2007 at 07:12 UTC
Updated:
5 Jul 2010 at 09:34 UTC
Jump to comment: Most recent
Comments
Comment #1
firebus commentedhuh. it looks like and it's ilk are not allowed in .htaccess files.
so the solution is to have a separate .htaccess file in the cache directory
i took the following out of the main .htaccess and added it to a new .htaccess in cache:
Comment #2
Anonymous (not verified) commentedI just noticed this today because I checked out my sites headers, and it's troubling that Boost sacrifices client caching for server caching. FWIW, I've installed your patch and my initial observation is that it works well.
Comment #3
Mojah commentedHi,
status changed to critical.
Thanks for pointing this out. We have Boost installed on a multi-site production server and our root .htaccess was edited according to the boost .htaccess rules which was probably affecting all our sites.
The changes work perfectly and the module is running smoothly.
To confirm for other boost users...edit your main .htaccess file in root and remove the following lines
Create a new .htaccess file and paste the above lines into it. Upload this file to your cache directory.
To see it working, delete some of your old cached files (which will show small file sizes of around 20 bytes before this change) and then call them with a browser as an anonymous user. You will notice the new file created with boost will be much larger in size (now in kB).
Excellent module!
Comment #4
Mojah commentedThere is some incorrect information in my last post. It appears that images are not being cached. I notice when visiting the site using ie that the browser continues to request image files on each page load.
The notes about checking file sizes to see if files are being cached may not be true as I notice that boost is creating symbolic links for nodes (in the nodes folder cache/domain.org/0/node). So to see if static files are being created follow the symbolic link.
This bug/by design issue is related only to css/image/js files as the title says and not the actual content as I misunderstood.
Comment #5
firebus commenteddrupal, by default, doesn't cache text/html type files
which should apply to boost's cache files as well, unless i'm missing something. can anyone explain why boost bothers with setting separate caching in the first place? i suspect this is a carryover from the 4.x version...
Comment #6
Christefano-oldaccount commentedI've seen this problem, too. Thank you, firebus, for posting a solution.
Comment #7
Anonymous (not verified) commentedI can't explain why boost does this, but on the site I'm using it I've just removed the lines you suggested (i.e. without moving them to the cache directory) and the site now meets my caching requirements perfectly as far as I can tell.
Comment #8
EvanDonovan commentedShould this be committed to the module? Seems like a good idea....
Comment #9
ckng#3 & #5 works for me, now all are loaded from browser cache if available.
Comment #10
mikeytown2 commentedI add these line to the bottom of my .htaccess file and it seems to work.
Although I should probably re-do some of the above once I read
http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html
Anyway the reason for boosts Cache-Control settings is for users who log-in and log-out.
Comment #11
mikeytown2 commentedWill look into using this method
http://httpd.apache.org/docs/trunk/mod/core.html#directory
untested
Comment #12
Alexander Ufimtsev commented"Header set" should be used instead of "Header add", otherwise Apache sends TWO values in Expires and Cache-Control.
Directory tag is not going to work in .htaccess - it should be placed in Apache config directly or the content of this should be added in .htaccess in cache/
Comment #13
mikeytown2 commentedPartial commit, adding .htaccess to cache dir not done yet.
Comment #14
mikeytown2 commentedNot sure splitting the htaccess file up is the smartest thing to do; seems like it would add too much complexity. If there is a good argument for doing it, please state your case.
Comment #15
sidharth_k commented+1 for Alexander's comment http://drupal.org/node/185075#comment-1626156
Comment #16
mikeytown2 commented@sidharth_k
"Header set" is already in 6.x-1.x-beta1
The question has to do with mutiple .htaccess files. Is this a vote for that?
http://groups.drupal.org/node/22864
In short every single .htaccess has to potential to slows down apache; with the already included FilesMatch directive it should only apply to *.html & *.html.gz files so it's sorta overkill, thats why I'm asking if this is really needed.
Comment #17
mikeytown2 commentedmarking wont fix, as
<FilesMatch "\.(html.gz|html)$">is in place. multiple .htaccess files would make this module even more complex.Comment #18
mikeytown2 commentedFigured out an alt way... kinda nuts but simple.
#514156: disable clean url's for all logged in users; allow for browser to cache pages.
Comment #19
mikeytown2 commentedmoving this back to 5.x
Comment #20
mikeytown2 commentedClosing all 5.x issues; will only reevaluate if someone steps up #454652: Looking for a co-maintainer - 5.x
Reason is 6.x has 10x as many users as 5.x; also last 5.x dev was over a year ago. The 5.x issue queue needs to go.
Comment #21
shyam541 commentedsubcribbing...