[wp-cvs] wordpress wp-comments-post.php, 1.23, 1.24 wp-login.php, 1.48, 1.49

Matthew Mullenweg saxmatt at users.sourceforge.net
Sun Dec 19 18:43:47 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21697

Modified Files:
	wp-comments-post.php wp-login.php 
Log Message:
Don't cache. No, really. Hat tip: Kimmo Suominen.

Index: wp-comments-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-comments-post.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** wp-comments-post.php	18 Dec 2004 20:56:25 -0000	1.23
--- wp-comments-post.php	19 Dec 2004 18:43:44 -0000	1.24
***************
*** 39,43 ****
  header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
  header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
! header('Cache-Control: no-cache, must-revalidate');
  header('Pragma: no-cache');
  
--- 39,43 ----
  header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
  header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
! header('Cache-Control: no-cache, must-revalidate, max-age=0');
  header('Pragma: no-cache');
  

Index: wp-login.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-login.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** wp-login.php	19 Dec 2004 02:30:40 -0000	1.48
--- wp-login.php	19 Dec 2004 18:43:44 -0000	1.49
***************
*** 20,23 ****
--- 20,27 ----
      setcookie('wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);
      setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);
+ 	header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
+ 	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
+ 	header('Cache-Control: no-cache, must-revalidate, max-age=0');
+ 	header('Pragma: no-cache');
  
  	header('Location: wp-login.php');




More information about the cvs mailing list