Menu

#391 (ok 3.2) cache control missing (PHP-CGI)

closed-fixed
1
2009-06-15
2008-01-04
stmfd
No

I couldn't login following steps.

1. Setup phpMyAdmin with cookie certification.
2. Try to login with the wrong username or password.
-> It will result the error message (server connection failed)
3. Login with the correct username and password.
4. The error message.

This problem with Firefox 2.0/3.0(beta), without IE6/Safari.

I checked the http response header at STEP(4).

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=10800, pre-check=10800

Under HTTP/1.1(RFC2068), Cache-Control header overwrite Expires header. So browser cache control will be enabled at STEP(4). I think the response should be:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache

Discussion

  • stmfd

    stmfd - 2008-01-04
     
  • stmfd

    stmfd - 2008-01-04

    Logged In: YES
    user_id=1973159
    Originator: YES

    Cache control test.
    patch file to libraries/auth/cookie.auth.lib.php.
    After patching this, it will ok with firefox.
    File Added: fixtest-loginchache.txt

     
  • Marc Delisle

    Marc Delisle - 2008-01-04

    Logged In: YES
    user_id=210714
    Originator: NO

    I cannot reproduce this problem, any idea why?

     
  • stmfd

    stmfd - 2008-01-05

    Logged In: YES
    user_id=1973159
    Originator: YES

    This problem seems to be happend only using PHP-CGI. (not FastCGI)
    I cann't reproduce it using mod_php.

    Testing environments:
    * Windows XP + apache 2.2.4 + php 5.2.0 (from official sites)
    * Debian/etch + apache 2.2.3 + php 5.2.0 (all of these are debian official packages)

     
  • Marc Delisle

    Marc Delisle - 2008-01-05
    • summary: cache control missing --> cache control missing (PHP-CGI)
     
  • Marc Delisle

    Marc Delisle - 2008-07-23
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2008-08-09
    • assigned_to: lem9 --> nobody
     
  • Marc Delisle

    Marc Delisle - 2009-04-12
    • milestone: 784091 -->
    • labels: 509102 --> Navigation/Usability
     
  • Marc Delisle

    Marc Delisle - 2009-04-12

    Moved to patches

     
  • Marc Delisle

    Marc Delisle - 2009-04-12
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2009-04-12
    • summary: cache control missing (PHP-CGI) --> (ok 3.2) cache control missing (PHP-CGI)
    • priority: 5 --> 1
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2009-04-12

    Merged in subversion, thanks.

     
  • Marc Delisle

    Marc Delisle - 2009-06-15
    • status: open-fixed --> closed-fixed