Active
Project:
Boost
Version:
6.x-1.18
Component:
Apache integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 05:14 UTC
Updated:
8 Nov 2012 at 02:41 UTC
Hello,
This is a super cool way to implement client side caching of files in the browser with apache mod expiry:
http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html
Thought it may be a good idea to add these to boost as an option :)
Comments
Comment #1
giorgio79 commentedComment #2
giorgio79 commentedIt seems this even existed in Drupal 4 htaccess but somewhere it was removed:
#40597: drupal caching too aggressive by default
Comment #3
mikeytown2 commentedIssue with this is logging in and out of the site. I did some experimental work with this in terms of the "Turn off clean url's for logged in users" setting.
Comment #4
giorgio79 commentedFor images and js this may still be good :)
Perhaps you cached the html for the logged in user and on logout it was still showing?
Comment #5
giorgio79 commentedI notice in the second of the two methods, now with mod headers, there is an example like this, where dynamic files are not cached on the client, this might solve it:
If we can get this to work, it will be a massive selling point for Boost / Drupal. As per AskApache:
Comment #6
kentr commentedPerhaps old news...
Seems to me this is already somewhat possible:
For CSS / JS, if you enable Optimize CSS files & Optimize JS files (maybe only available in Pressflow?), the aggregated files are stored by default in the Drupal files directory, where you can set the Cache-Control / Expires headers as desired.
Same with images & media files -- you can already control the headers in the main .htaccess file, subdirectory .htaccess files, etc.
For me, the only thing that's missing are the static versions of dynamic content under the Boost cache directory. I would definitely prefer that Boost not write the .htaccess to disable all caching.
I gather that issue is fixed by these lines in .htaccess: