Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_never_expire updated |
|
Author |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 11 Jul '11 15:40 Post subject: mod_never_expire updated |
|
|
More time here to catch up. Updated mod_never_expire, now build with the latest VC.
What is mod_never_expire ?
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 |
|
|
|
|
|
|