hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : mod_expires not working with IE?

Forum Jump

mod_expires not working with IE?

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Junior Guru Wannabe
Join Date: Aug 2002
Posts: 44

mod_expires not working with IE?

I have mod_expires and mod_headers setup on one of my servers, I have the directives in httpd.conf (apache on linux):

LoadModule headers_module libexec/
LoadModule expires_module libexec/
AddModule mod_expires.c
AddModule mod_headers.c

So the module should be loading up. I have in an htaccess file:

# Cache images
ExpiresActive On
ExpiresByType image/gif "now plus 1 day"
ExpiresByType image/jpeg "now plus 1 day"
ExpiresByType image/png "now plus 1 day"
ExpiresByType image/jpg "now plus 1 day"
ExpiresDefault "now plus 1 day"
<Files *>
Header append Cache-Control "public, must-revalidate"

So I go test it in Firebird/Mozilla/Opera, it appears to be working:
No porn at this exact url, just the 'logo'

To be sure, I run a head command from bash:
200 OK
Cache-Control: public, must-revalidate, max-age=86400
Connection: close
Date: Wed, 03 Dec 2003 19:39:20 GMT
Accept-Ranges: bytes
ETag: "3d81dc-93-3fcd2769"
Server: Apache/1.3.29 (Unix) mod_gzip/ mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 FrontPage/ mod_ssl/2.8.16 OpenSSL/0.9.6b PHP-CGI/0.1b
Content-Length: 147
Content-Type: text/html
Expires: Thu, 04 Dec 2003 19:39:20 GMT
Last-Modified: Tue, 02 Dec 2003 23:59:37 GMT
Client-Date: Wed, 03 Dec 2003 19:39:18 GMT
Client-Response-Num: 1

Yup, appears to be working. Let me make sure the image is cached as well.

Expires: Thu, 04 Dec 2003 19:40:02 GMT
Last-Modified: Tue, 02 Dec 2003 22:05:00 GMT

Yup, that works.

Testing it in IE, it isn't caching the images. Any reason why? What am I missing here.

Thanks in advance for any help.

Image Hosting

Sponsored Links
Web Hosting Guru
Join Date: Oct 2002
Location: Canada, QC, Montreal
Posts: 302
mod_gzip is sending the "Vary: Accept-Encoding" header


Related posts from
Title Type Date Posted
Web Hosting Sales and Promos Roundup - January 9, 2015 Web Hosting News 2015-01-09 16:43:57
Web Hosting Sales and Promos Roundup - December 19, 2014 Web Hosting News 2014-12-22 11:52:21
Web Hosting Sales and Promos Roundup - August 22, 2014 Web Hosting News 2014-08-22 11:36:10
Web Hosting Sales and Promos Roundup - January 24, 2014 Web Hosting News 2014-05-23 15:42:31
European Data Center Association Forms Groups to Address Power, Data Center Control Issues Web Hosting News 2013-04-10 12:15:48

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?