User loginRecent blog posts
Homeland Security Advisory System
Popular contentToday's: |
Sending Cache-control Headers Using Apache's header moduleSubmitted by geekwisdom on Sat, 2005-02-12 15:55.
NOTE: If you're using Apache 2.x go here. I manage a fair number of Apache 1.3x web servers. Most of which are used for virtual hosting. After reading an article by Jeff Fulmer in SysAdmin Magazine entitled "Save Bandwidth and Increase Performance with Cache-control Response Headers" I decided to configure my Apache servers to use mod_header to send the Cache-control header for graphics files. First I activated the mod_header module in Apache. cd /<your path>/apache_1.3.x/src/modules/standard Then I added a configuration directive for the main server configuration which sends the Cache-control header for common graphics. <IfModule mod_header.c> All that was left was to restart Apache and test everything. /<your path>/apache/bin/apachectl configtest Testing was pretty simple. I tailed the access log and made two requests for the same page. The first request resulted with a flurry of files being requested (all the graphics being downloaded). The second request resulted in a single file request (no graphics) and the graphics where logged as HTTP status 304 (unmodified), success. ( categories: Systems Administration )
|
Mozilla Project
Google SearchesGeek(Wisdom).com is not affiliated with google. We just like their search engine.
SyndicationFront Page Programming/Architecture Security/Privacy Systems Administration Old SiteLooking for the old, old site? 2008/07/08 22:16:26
|