Needs work
Project:
Fast File Transfer with X-send file
Version:
6.x-2.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2010 at 02:42 UTC
Updated:
24 May 2011 at 08:06 UTC
While looking at various posts on private and public download methods and issues I came across the xsend module which sounds very promising. One important question I have is does using private downloads with the xsend module allow css optimization? From what I have read I am under the impression that one of the drawbacks of the Drupal private download method is that css optimization is not possible. Maybe this is a misunderstanding.
Thanks,
Izzy
Comments
Comment #1
izmeez commentedI am wondering if anyone can help me with this question.
If X-send file is installed does it handle css and js optimization
or is it still necessary to consider additional patches such as http://drupal.org/node/572516 ?
Thanks,
Izzy
Comment #2
hypertext200Here I'm using override of Drupal private download with X-send so not sure about CSS optimizations, unless Drupal it self support it.
Comment #3
izmeez commentedYes, Drupal supports CSS optimization and JS optimization.
In Drupal 6.x goto admin/settings/performance.
If CSS or JS optimization is enable the following folders appear /files/css and /files/js and contain the aggregated files.
Other modules can also create folders for temporary files that are also used for anonymous visits such as google analytics, and gmap.
So, I am wondering how the xsend file module applies to these files. Does it handle them without conflict?
Thanks,
Izzy
Comment #4
arhak commentedhttp://drupal.org/node/572516#comment-2555740
Comment #5
marcoka commentedin privat file mode, afaik, there is no aggregation avaliable
Comment #7
ñull commentedThere is a way to use mixed private and public file mode in Drupal 6. In that way you can use js and css optimization. In stead of setting Drupal to private mode you use mod_rewrite rules in .htaccess to redirect file requests to the secure system/files path. I tried this with the sites/default/files path and put this in .htaccess:
Now you only need to disable secure file mode In the files/css and files/js folders by adding a .htaccess to them with:
This will switch off the secure redirection for these folders and will be served as usual. This works well together with the xsend module.