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.
One of 2 options.
1. Create a "permanent" folder just like the "gz" folder and store all css/js files in there. If doing this, also create a "normal" folder as well.
2. Rewrite _boost_rmdir_rf() so it only targets html, xml and ajax(js) files. Could be a little tricky.
Thoughts?
Comment | File | Size | Author |
---|---|---|---|
#8 | boost-546850.patch | 7.47 KB | mikeytown2 |
#5 | boost-546850.patch | 13.96 KB | mikeytown2 |
#4 | boost-546850.patch | 6.83 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedIncorporating this &
#489824: IE tries to download a file instead of opening a page with gzip
#528506: Better Detect GZIP Compression
Use .ajax instead of .js for json/ajax responses.
http://drupal.org/node/545922#comment-1911702
One final note is the charset is not getting set if serving .gz files.
AddCharset utf-8 .gz
doesn't work in case your wondering. Any ideas on this minor issue?Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedMake the various subdir's be changable via text field; allowing for "backwards compatibility". So for normal you would leave it blank, and for gzip set it to gz/. Checkbox for the permanent dir since that combines normal and gzip to have it work the old way. Allow one to pick each extension for each filetype. The gzip cookie test would be enabled via a checkbox; only on non-gzipped page; check for cookie, if not then do iframe test.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedMake generation & requirements be built based on the settings; minimalist approach for htaccess file additions, only use what you need.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commented1/2 there
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedThis should be 100% compatible with the current setup... now I need to work on an upgrade or something.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted, need to work on some sort of update function... probably going to use glob, would be nice if this could be an optional one.
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedAlso need to add in the gzip cookie test; inject it on the front page only, only on the non gzip one. Make it an option
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedcookie test integrated
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted