Commit b25a8d5
committed
minor symfony#58011 [HttpKernel] Improve and add tests for
This PR was merged into the 6.4 branch.
Discussion
----------
[HttpKernel] Improve and add tests for `Last-Modified` computation with ESI responses
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
This PR slightly improves the test cases for symfony#42355 (which fixed symfony#41666).
It adds two tests for the cases where `Last-Modified` should _not_ be added,
and updates the existing test to make it more obvious that we only look at
the existence of `Last-Modified` headers, whereas the `ETag` is not
relevant.
Commits
-------
40d5455 Improve and add tests for Last-Modified computation with ESI responsesLast-Modified computation with ESI responses (mpdude)File tree
1 file changed
+35
-9
lines changed- src/Symfony/Component/HttpKernel/Tests/HttpCache
1 file changed
+35
-9
lines changedLines changed: 35 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
147 | 161 | | |
148 | | - | |
149 | 162 | | |
150 | | - | |
| 163 | + | |
151 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
154 | 173 | | |
155 | | - | |
156 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
157 | 183 | | |
158 | 184 | | |
159 | 185 | | |
| |||
0 commit comments