I've just stumbled on the plone.recipe.apache recipe yesterday. Nice work!!!
One feature I immediatelly thought of is the following: while
configuring VHM and all that, why not use Apache to serve static
resources from the skins? It feels to me like it would be a very
useful feature for offloading at least some content serving from
Plone.
I see it working like this:
"""
[apache-conf]
recipe = plone.recipe.apache
...
resources =
images:${buildout:directory}/parts/my-products/my.theme/skin/images
js:${buildout:directory}/parts/my-products/my.theme/skin/js
css:${buildout:directory}/parts/my-products/my.theme/skin/css
resources-expires =
(css|js|jpg|png|gif):expires:"access plus 1
week":cache-control:"max-age=172800, public, must-revalidate"
"""
This would generate:
"""
<IfModule mod_expires.c>
<FilesMatch "\.(css|js|jpg|png|gif)$">
ExpiresActive on
ExpiresDefault "access plus 2 days"
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
</IfModule>
Alias /images
/home/sidnei/src/my-buildout/parts/my-products/my.theme/skin/images
<Directory /home/sidnei/src/my-buildout/parts/my-products/my.theme/skin/images>
Order allow,deny
Allow from all
</Directory>
RewriteRule ^/images/ - [L]
"""
Thoughts?
--
Sidnei da Silva
Enfold Systems
http://enfoldsystems.comFax +1 832 201 8856 Office +1 713 942 2377 Ext 214
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers