logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_never_expire available
Author
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3059
Location: Hilversum, NL, EU

PostPosted: Sun 16 Sep '07 11:16    Post subject: mod_never_expire available Reply with quote

Handy mod that sets long expire and cache-control headers. Great for Images, CSS, and Javascript, as long as you properly version your URLs.


Note: With the standard module mod_expires you can also set the expire. But that is complicated. And it wants by default to work per-content Content-Types, with mod_never_expire everything under a directory path is what matters.

To use, you just use any Directory/Location/Files container, and turn it on:

<LocationMatch ^/c/css/rd+/.+.css>
NeverExpire on
</LocationMatch>

or:

<Directory "/foo/bar/js/">
NeverExpire on
</Directory>

Steffen
Back to top


Reply to topic   Topic: mod_never_expire available View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules