Skip to content

Commit

Permalink
Clarify docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 27, 2012
1 parent abe74ad commit 028795e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Cake/Network/CakeResponse.php
Expand Up @@ -1083,12 +1083,11 @@ public function length($bytes = null) {
* is marked as so accordingly so the client can be informed of that. * is marked as so accordingly so the client can be informed of that.
* *
* In order to mark a response as not modified, you need to set at least * In order to mark a response as not modified, you need to set at least
* the Last-Modified response header or a response etag to be compared * the Last-Modified etag response header before calling this method. Otherwise
* with the request itself * a comparison will not be possible.
* *
* @return boolean whether the response was marked as not modified or * @return boolean whether the response was marked as not modified or not.
* not */
**/
public function checkNotModified(CakeRequest $request) { public function checkNotModified(CakeRequest $request) {
$etags = preg_split('/\s*,\s*/', $request->header('If-None-Match'), null, PREG_SPLIT_NO_EMPTY); $etags = preg_split('/\s*,\s*/', $request->header('If-None-Match'), null, PREG_SPLIT_NO_EMPTY);
$modifiedSince = $request->header('If-Modified-Since'); $modifiedSince = $request->header('If-Modified-Since');
Expand Down

0 comments on commit 028795e

Please sign in to comment.