Skip to content
This repository
Browse code

Clarify docs.

  • Loading branch information...
commit 028795eb2e9ae33a4a4c50e96b4971106177adc2 1 parent abe74ad
Mark Story authored August 25, 2012

Showing 1 changed file with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 9  lib/Cake/Network/CakeResponse.php
9  lib/Cake/Network/CakeResponse.php
@@ -1083,12 +1083,11 @@ public function length($bytes = null) {
1083 1083
  * is marked as so accordingly so the client can be informed of that.
1084 1084
  *
1085 1085
  * In order to mark a response as not modified, you need to set at least
1086  
- * the Last-Modified response header or a response etag to be compared
1087  
- * with the request itself
  1086
+ * the Last-Modified etag response header before calling this method.  Otherwise
  1087
+ * a comparison will not be possible.
1088 1088
  *
1089  
- * @return boolean whether the response was marked as not modified or
1090  
- * not
1091  
- **/
  1089
+ * @return boolean whether the response was marked as not modified or not.
  1090
+ */
1092 1091
 	public function checkNotModified(CakeRequest $request) {
1093 1092
 		$etags = preg_split('/\s*,\s*/', $request->header('If-None-Match'), null, PREG_SPLIT_NO_EMPTY);
1094 1093
 		$modifiedSince = $request->header('If-Modified-Since');

0 notes on commit 028795e

Please sign in to comment.
Something went wrong with that request. Please try again.