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.

Cache-control (different that expressionengine.com)

January 14, 2009 11:30am

Subscribe [7]
  • #1 / Jan 14, 2009 11:30am

    myobie

    7 posts

    I have an EE site that is sending a Cache-Control header with every page, even the register form. However, looking at the headers sent by expressionengine.com’s register form, there is no Cache-Control header.

    How do I disable this header (like expressionengine.com did)?

  • #2 / Jan 14, 2009 11:44am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, myobie.

    How are you setting up the cache-control header? Via .htaccess?

  • #3 / Jan 14, 2009 2:03pm

    myobie

    7 posts

    There are no Cache-Control headers in the .htaccess file we are using.

  • #4 / Jan 14, 2009 4:53pm

    Ingmar

    29245 posts

    Are you sure this is not a server configuration issue?

  • #5 / Jan 14, 2009 4:57pm

    myobie

    7 posts

    All files that are served directly from apache do not have the header. Only rendered templates from EE.

  • #6 / Jan 14, 2009 6:04pm

    Ingmar

    29245 posts

    Do you’ve got a link to the site? Also, which version and build of EE are you on?

  • #7 / Jan 14, 2009 11:37pm

    myobie

    7 posts

    I do not have a direct URL. We are using version 1.6.4. I have read through the changelog for the two newer versions and nothing is listed about Cache-Control headers.

    Here is a copy of the response headers form our install and expressionengine.com’s install: http://gist.github.com/raw/47249/7b79fa9795873642e8d5d6447573dea6c0c56f71

  • #8 / Jan 15, 2009 10:12am

    Sue Crocker

    26054 posts

    When I query in Google, I come up with all kinds of links, one of which is Ask Apache Speed Cache Control.

    It *sounds* like the issue has nothing to do with EE. What does your host have to say?

  • #9 / Jan 15, 2009 10:16am

    myobie

    7 posts

    We are hosting it on our own server. It does the cache control headers when I run it in mamp on my laptop and when I deploy to our production server.

    Thank you for your research. I will check all of the conf files again, just to be sure.

  • #10 / Jan 15, 2009 10:35am

    myobie

    7 posts

    I have reviewed the apache conf and htaccess files again and Cache-Control does not appear in any of those files.

  • #11 / Jan 15, 2009 1:24pm

    Pascal Kriete

    2589 posts

    That’s odd.  Go to Admin ›  System Preferences ›  Output and Debugging Preferences and try turning off HTTP Page Headers.  That will make sure that EE makes no use of the PHP header() function, so we can see the raw server output.

    You could also try serving a basic PHP file to see what headers are server generated.

  • #12 / Jan 15, 2009 1:42pm

    myobie

    7 posts

    Deactivating that did not remove the Cache-Control header. I put another php file in the same directory (so same vhost and everything) and it does not include the header. The only way I can make a file show that header is if it’s a template in EE.

  • #13 / Jan 15, 2009 1:53pm

    Pascal Kriete

    2589 posts

    Are you using any third party extensions or other PHP scripts within EE that might be sending this?  You can temporarily disable all extensions using the big green button on the extension manager page in the CP.

  • #14 / Jan 22, 2009 5:55pm

    Ingmar

    29245 posts

    myobie, any news in that regard? We just had a similar case where an extension turned out to be, indeed, the culprit.

  • #15 / May 19, 2009 4:00am

    John Henry Donovan

    12339 posts

    Splitting off thread here

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

ExpressionEngine News!

#eecms, #events, #releases