My church server runs Ubuntu 6.06 (old I know) and it has
/usr/lib/apache2/modules/mod_expires.so as part of the normal apache
package. Perhaps someone with a newer Ubuntu can help.
On 2/12/2010 2:23 PM, mdipierro wrote:
I do not have it. How do I install it under ubuntu?
On Feb 12, 12:46 pm, Timothy Farrell<tfarr...@swgen.com> wrote:
There are two ways to go about this:
Long cache time (only ask for files periodically):
# Configure Expires Header for PDFs
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresByType text/js "access plus 1 months"
Etags (detect changed files):
# Configure Etags to manage browser caches
FileETag MTime Size
(Contrary to the example,) I use etags for images, css and js files and
use Expires headers for other statics files like PDF and SWFs. You
might need to add mod_expires depending on your setup.
-tim
On 2/12/2010 11:30 AM, mdipierro wrote:
I use the apache config file configured by this:
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ub...
apache serves them directly. This is not a web2py issue but an apache
issue.
On Feb 12, 11:10 am, Timothy Farrell<tfarr...@swgen.com> wrote:
Clarify this a little. Is Apache serving the static files or is web2py
serving them through Apache?
On 2/12/2010 10:50 AM, mdipierro wrote:
In my setup apache+mod_wsgi serve static files. How do I make sure
apache sends a header which sets a long cache time?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.