Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a83616

Browse files
committed
Added the missing versionadded directives
1 parentc49560c commit0a83616

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎components/http_foundation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,11 @@ call::
503503
'etag' => 'abcdef'
504504
]);
505505

506+
..versionadded::5.1
507+
508+
The ``must_revalidate``, ``no_cache``, ``no_store``, ``no_transform`` and
509+
``proxy_revalidate`` directives were introduced in Symfony 5.1.
510+
506511
To check if the Response validators (``ETag``, ``Last-Modified``) match a
507512
conditional value specified in the client Request, use the
508513
:method:`Symfony\\Component\\HttpFoundation\\Response::isNotModified`

‎http_cache.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ the most useful ones::
342342
Additionally, most cache-related HTTP headers can be set via the single
343343
:method:`Symfony\\Component\\HttpFoundation\\Response::setCache` method::
344344

345-
// sets cache settings in one call
345+
// use this method to set several cache settings in one call
346+
// (this example lists all the available cache settings)
346347
$response->setCache([
347348
'must_revalidate' => false,
348349
'no_cache' => false,
@@ -358,6 +359,11 @@ Additionally, most cache-related HTTP headers can be set via the single
358359
'etag' => 'abcdef'
359360
]);
360361

362+
..versionadded::5.1
363+
364+
The ``must_revalidate``, ``no_cache``, ``no_store``, ``no_transform`` and
365+
``proxy_revalidate`` directives were introduced in Symfony 5.1.
366+
361367
Cache Invalidation
362368
------------------
363369

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp