Forum Moderators: phranque

Message Too Old, No Replies

Expires line in http header not getting generated

         

nysus

3:08 am on Oct 4, 2003 (gmt 0)

10+ Year Member



I'm running a RaQ4 server. I've configured my httpd.conf file to load both the headers module and the expires module. I've restarted the server. I've place the following lines in my .htaccess file:

ExpiresActive on
ExpiresByType image/gif "modification plus 7 days"
ExpiresByType text/html "now plus 0 seconds"

But when I look at the HTTP header, no line for "Expires:" exists. Did I overlook something?

DaveAtIFG

3:32 am on Oct 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From this page [studio.tellme.com]:
An ETag is an HTTP response header returned by an HTTP/1.1 compliant Web server such as Apache 1.3x

Is your RAQ server HTTP/1.1 compliant?

Storyteller

11:49 pm on Oct 4, 2003 (gmt 0)

10+ Year Member



nysus, the configuration you presented seems 100% correct to me. So something else must be at fault. Try setting ExpiresDefault and see if it works.

DaveAtIFG, Expires has absolutely nothing to do with ETag. It's the Cache-Control that has. Expires is a feature of HTTP 1.0, not 1.1

DaveAtIFG

7:57 am on Oct 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks StoryTeller! I was busy, and thinking about another thread when I posted. We need a smiley face/emoticon with a RED face! :)