Skip to content

Commit

Permalink
corrections to response/cookies url
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Dec 17, 2023
1 parent d1b6a65 commit b3566be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ $eTag = sha1($mostRecentDate);
$response->setHeader('E-Tag', $eTag);
```

### `304`
### Not Modified - `304`
Generating a `not-modified` response also helps with caching, by instructing the browser that the contents have not been modified, and therefore the locally cached copy of the data on the browser should be used.


Expand Down Expand Up @@ -719,7 +719,7 @@ class PostsController extends Controller
return $this
->response
->setStatusCode(404, 'Not Found')
->setContent("Sorry, the page doesn't exist")
->setContent("Sorry, the page does not exist")
->send();
}
}
Expand Down
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ nav:
- Cache: cache.md
- Config: config.md
- Escaper: html-escaper.md
- Loader: autoload.md
- Logger: logger.md
- HTTP:
- Cookies: response.md#cookies
- Cookies: response/#cookies
- Request: request.md
- Response: response.md
- Loader: autoload.md
- Logger: logger.md
- i18n:
- Internationalization: i18n.md
- Translate: translate.md
Expand Down

0 comments on commit b3566be

Please sign in to comment.