Skip to content

Commit b64dd02

Browse files
committed
[#13171] Some small rewordings
1 parent b129252 commit b64dd02

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

http_cache.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.. index::
22
single: Cache
33

4-
.. _http-cache:
5-
64
HTTP Cache
75
==========
86

security.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,10 @@ accidentally block Symfony's dev tools - which live under URLs like ``/_profiler
293293
and ``/_wdt``.
294294

295295
All *real* URLs are handled by the ``main`` firewall (no ``pattern`` key means
296-
it matches *all* URLs).
297-
A firewall can have many modes of authentication, in other words many ways to
298-
ask the question "Who are you?".
299-
It is convenient to first let users answer "I'm no one in particular, just a
300-
visitor as any other", this mode is ``anonymous``.
296+
it matches *all* URLs). A firewall can have many modes of authentication,
297+
in other words many ways to ask the question "Who are you?". Often, the
298+
user is unknown (i.e. not logged in) when they first visit your website. The
299+
``anonymous`` mode, if enabled, is used for these requests.
301300

302301
In fact, if you go to the homepage right now, you *will* have access and you'll
303302
see that you're "authenticated" as ``anon.``. The firewall verified that it
@@ -306,21 +305,21 @@ does not know your identity, and so, you are anonymous:
306305
.. image:: /_images/security/anonymous_wdt.png
307306
:align: center
308307

309-
It means any request can have an anonymous token to access some resource, while
310-
some actions (i.e. some pages or buttons) can still require some privileges.
311-
A request can then access a form login without being authenticated as a unique
312-
user (otherwise an infinite redirection loop would happen asking the user to
313-
authenticate while trying to doing so).
308+
It means any request can have an anonymous token to access some resource,
309+
while some actions (i.e. some pages or buttons) can still require specific
310+
privileges. A user can then access a form login without being authenticated
311+
as a unique user (otherwise an infinite redirection loop would happen
312+
asking the user to authenticate while trying to doing so).
314313

315314
You'll learn later how to deny access to certain URLs, controllers, or part of
316315
templates.
317316

318-
.. note::
317+
.. tip::
319318

320-
The ``lazy`` anonymous mode prevent the session from being started if there
321-
is no need for authorization (i.e. explicit check for a user privilege).
322-
This is important to keep requests cacheable (see
323-
:ref:`HTTP cache <http-cache>`).
319+
The ``lazy`` anonymous mode prevents the session from being started if
320+
there is no need for authorization (i.e. explicit check for a user
321+
privilege). This is important to keep requests cacheable (see
322+
:doc:`/http_cache`).
324323

325324
.. note::
326325

0 commit comments

Comments
 (0)