ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HTTP host header expires date not setting correctly

September 21, 2007 7:55pm

Subscribe [3]
  • #1 / Sep 21, 2007 7:55pm

    dyode

    17 posts

    For some reason my HTTP Host headers expires date is being set to “Expires: Mon, 26 Jul 1997 05:00:00 GMT” only on my Expression Engine sites? I have verified that other files in the same exact install directory have the correct expires value. It seems that the expression engine headers are not even being effected by the mod_expires ExpiresDefault parameter settings. The Date and Last-Modified-Dates are however correct. I have searched the forum and have not found any one else reporting this type of issue, hopefully someone will be able to help me out. Thanks!

  • #2 / Sep 21, 2007 9:06pm

    Sue Crocker

    26054 posts

    EEDocs:// Output and Debugging Preferences

    Take a look here at the docs.

    Generate HTTP Page Headers?

    This setting determines whether or not the server should automatically send HTTP page headers when it serves the pages to a user. Setting this preference to “Yes” causes headers to be explicitly sent by the server. Sending explicit headers is generally considered to be a good practice, although in some cases it can cause some problems.

    What are you set to?

  • #3 / Sep 21, 2007 9:17pm

    dyode

    17 posts

    It’s set to “Yes”. Not sure why the date would be incorrect though?

  • #4 / Sep 21, 2007 9:40pm

    Derek Jones

    7561 posts

    ExpressionEngine sends the Expires header when header output is turned on; a date in the past ensures that browsers will always request new information for the page, so that your visitors do not see out-of-date content.  mod_expires is an Apache module, and does not affect the PHP code that ExpressionEngine uses to output its headers.

  • #5 / Sep 21, 2007 9:48pm

    Sue Crocker

    26054 posts

    Thanks for the explanation, Derek.

  • #6 / Sep 22, 2007 3:22pm

    dyode

    17 posts

    Gotcha. Is there a reason why you would not want to show the old expires header?

  • #7 / Sep 23, 2007 11:30am

    Robin Sowell

    13255 posts

    I recall running into conflict once with some redirects, but that’s about it.  I turn it on by default- flip it off if I do run into an issue.  It’s rare that I do.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases