You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ WebfactoryHttpCacheBundle is a Symfony bundle that eases
4
4
[HTTP cache validation via the last modified header](https://symfony.com/doc/current/http_cache/validation.html#validation-with-the-last-modified-header).
5
5
6
6
It provides the ```ReplaceWithNotModifiedResponse``` annotation for your controller actions. This annotation can be
7
-
parameterised with Voters, one for each of the underlying ressources that overall determine the last modified date for
7
+
parameterised with Voters, one for each of the underlying resources, and determines the overall latest "last modified" date for
8
8
the response. If the client request contains an appropriate if-not-modified-since header, the execution of the
9
9
controller action will be skipped and an empty response with a 304 Not Modified status code will be sent. If your Voters
10
10
are fast, this can improve your performance greatly.
@@ -116,8 +116,8 @@ services:
116
116
```
117
117
118
118
Although this seems to be more code, we find it to be a good deal, as we separate the concerns better and encapsulate
119
-
the tasks in a smaller units that are easier to understand and test. Another advantage becomes obvious when we have
120
-
another controller action that depends on an article for it's last modified date - we can reuse the ArticleVoter and
119
+
the tasks into smaller units that are easier to understand and test. Another advantage becomes obvious when we have
120
+
another controller action that depends on an article for its last modified date - we can reuse the ArticleVoter and
121
121
combine it with other Voters.
122
122
123
123
@@ -208,7 +208,7 @@ final class MyController
208
208
}
209
209
```
210
210
211
-
The most simple form of adding a Voter is passing it's fully qualfified class name:
211
+
The most simple form of adding a Voter is passing its fully qualfified class name:
0 commit comments