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: docs/guide/cache/content_aware_cache.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
@@ -92,7 +92,7 @@ Apache has a [hard](https://github.com/apache/httpd/blob/5f32ea94af5f1e7ea68d6fc
92
92
1\. For inline rendering just displaying the content name, image attribute, and/or link, it would be enough to:
93
93
94
94
- Look into how many inline (non ESI) render calls for content rendering you are doing, and see if you can organize it differently.
95
-
- Consider inlining the views not used elsewhere in the given template and [tagging the response in Twig](#response-tagging-in-twig) with "relation" tags.
95
+
- Consider inlining the views not used elsewhere in the given template and [tagging the response in Twig](#response-tagging-in-templates) with "relation" tags.
96
96
- (Optional) You can set reduced cache TTL for the given view, to reduce the risk of stale cache on subtree operations affecting the inlined content.
97
97
98
98
2\. You can opt in to set a max length parameter (in bytes) and corresponding ttl (in seconds)
@@ -197,7 +197,7 @@ but parent response needs these tags to get refreshed if they are deleted:
See [Tagging from code](https://foshttpcachebundle.readthedocs.io/en/2.8.0/features/tagging.html#tagging-and-invalidating-from-php-code) in FOSHttpCacheBundle doc.
200
+
See [Tagging from code](https://foshttpcachebundle.readthedocs.io/en/stable/features/tagging.html#tagging-and-invalidating-from-php-code) in FOSHttpCacheBundle doc.
201
201
202
202
4\. Use deprecated `X-Location-Id` header.
203
203
@@ -250,7 +250,7 @@ As a last resort you can also use the following function from FOS which lets you
250
250
{{ fos_httpcache_tag(['r33', 'r44']) }}
251
251
```
252
252
253
-
See [Tagging from Twig Templates](https://foshttpcachebundle.readthedocs.io/en/latest/features/tagging.html#tagging-from-twig-templates) in FOSHttpCacheBundle documentation.
253
+
See [Tagging from Twig Templates](https://foshttpcachebundle.readthedocs.io/en/stable/features/tagging.html#tagging-from-twig-templates) in FOSHttpCacheBundle documentation.
254
254
255
255
## Tag purging
256
256
@@ -400,7 +400,7 @@ To find a valid route, click an element in the **URLs** drop-down for the specif
In this case the region is `us-2` and you can find the public IP list on [Platform.sh documentation page](https://docs.platform.sh/development/public-ips.html)
403
+
In this case the region is `us-2` and you can find the public IP list on [Platform.sh documentation page](https://docs.platform.sh/development/regions.html#public-ip-addresses)
404
404
Typically, you can add a `gw` to the hostname and use nslookup to find it.
Copy file name to clipboardExpand all lines: docs/guide/cache/context_aware_cache.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ A similar but internal logic is done in the provided enhanced Symfony Proxy (App
18
18
19
19
## Request lifecycle
20
20
21
-
This expands steps covered in [FOSHttpCacheBundle documentation on user context feature](https://foshttpcachebundle.readthedocs.io/en/latest/features/user-context.html#how-it-works):
21
+
This expands steps covered in [FOSHttpCacheBundle documentation on user context feature](https://foshttpcachebundle.readthedocs.io/en/stable/features/user-context.html#how-it-works):
22
22
23
23
1. A client (browser) requests URI `/foo`.
24
24
1. The caching proxy receives the request and holds it. It first sends a hash request to the application's context hash route: `/_fos_user_context_hash`.
@@ -32,7 +32,7 @@ as the hash lookup itself is cached by the cache proxy as described below.
32
32
33
33
### User context hash caching
34
34
35
-
Example of a response sent to reverse proxy from `/_fos_user_context_hash` with [[[= product_name =]]'s default config](#default-options-for-FOSHttpCacheBundle-defined-in-ibexa-dxp):
35
+
Example of a response sent to reverse proxy from `/_fos_user_context_hash` with [[[= product_name =]]'s default config](#default-options-for-foshttpcachebundle):
36
36
37
37
```
38
38
HTTP/1.1 200 OK
@@ -68,6 +68,7 @@ It also varies on `Authorization` to cover any possible basic authorization head
68
68
69
69
!!! caution "Default options for FOSHttpCacheBundle"
The following configuration is defined by default for FOSHttpCacheBundle.
72
73
You should not override these settings unless you know what you are doing.
73
74
@@ -125,16 +126,16 @@ This solution requires more effort (controller, VCL logic and adapting your own
125
126
If you need to handle a paywall on a per-item basis, or example, do a
126
127
lookup to backend for each URL where this is relevant.
127
128
128
-
You can find an example for paywall authorization in [FOSHTTPCache documentation.](https://foshttpcache.readthedocs.io/en/latest/user-context.html#alternative-for-paywalls-authorization-request)
129
+
You can find an example for paywall authorization in [FOSHTTPCache documentation.](https://foshttpcache.readthedocs.io/en/stable/user-context.html#alternative-for-paywalls-authorization-request)
129
130
130
131
### Best practices for custom vary by logic
131
132
132
-
For information on how user context hashes are generated, see [FOSHttpCacheBundle documentation](https://foshttpcachebundle.readthedocs.io/en/latest/features/user-context.html#generating-hashes).
133
+
For information on how user context hashes are generated, see [FOSHttpCacheBundle documentation](https://foshttpcachebundle.readthedocs.io/en/stable/features/user-context.html#generating-hashes).
133
134
134
135
[[= product_name =]] implements a custom context provider in order to make user context hash reflect the current User's Roles and Limitations.
135
136
This is needed given [[= product_name =]]'s more complex permission model compared to Symfony's.
136
137
137
-
You can technically extend the user context hash by [implementing your own custom context provider(s)](https://foshttpcachebundle.readthedocs.io/en/latest/reference/configuration/user-context.html#custom-context-providers).
138
+
You can technically extend the user context hash by [implementing your own custom context provider(s)](https://foshttpcachebundle.readthedocs.io/en/stable/reference/configuration/user-context.html#custom-context-providers).
138
139
However, **this is strongly discouraged** as it means increasing the amount of cache variations
139
140
stored in proxy for every single cache item, lowering cache hit ratio and increasing memory use.
140
141
@@ -151,7 +152,7 @@ needs, and adapt the user context hash VCL logic to use the additional header.
151
152
152
153
To avoid overloading any application code, take advantage of Symfony's event system:
153
154
154
-
1\. Add a [Response event (`kernel.response`)](https://symfony.com/doc/5.4/reference/events.html#kernel-response)[listener or subscriber](https://symfony.com/doc/5.4/event_dispatcher.html) to add your own hash to `/_fos_user_context_hash`:
155
+
1\. Add a [Response event (`kernel.response`)]([[= symfony_doc =]]/reference/events.html#kernel-response) [listener or subscriber]([[= symfony_doc =]]/event_dispatcher.html) to add your own hash to `/_fos_user_context_hash`:
155
156
156
157
```php
157
158
public function addPreferenceHash(FilterResponseEvent $event)
To enable basic-auth, use [Fastly documentation](https://developer.fastly.com/solutions/examples/http-basic-auth) as an example.
338
+
To enable basic-auth, use [Fastly documentation](https://www.fastly.com/documentation/solutions/examples/http-basic-auth/) as an example.
339
339
340
340
Follow the steps below.
341
341
342
-
Usernames and passwords can be stored inside the VCL file, but in this case credentials are stored in a [dictionary](https://docs.fastly.com/en/guides/working-with-dictionaries-using-the-web-interface#working-with-dictionaries-using-vcl-snippets).
342
+
Usernames and passwords can be stored inside the VCL file, but in this case credentials are stored in a [dictionary](https://docs.fastly.com/en/guides/working-with-dictionaries#working-with-dictionaries-using-vcl-snippets).
343
343
344
344
!!! note
345
345
To make this example work, you must run [[= product_name =]] in version 3.3.16 or later, or 4.5.
Copy file name to clipboardExpand all lines: docs/guide/cache/http_cache_config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ As the system takes care of purges, the cache should not become stale with the e
29
29
A few redirect and error pages are served through the content view system. If you set a high `default_ttl`, they can also be served from cache.
30
30
31
31
To avoid this, the installation ships with configuration to match these specific situations and set a much lower TTL.
32
-
[FOSHttpCacheBundle matching rules](http://foshttpcachebundle.readthedocs.io/en/2.8.0/reference/configuration/headers.html) enables you to specify a different TTL:
32
+
[FOSHttpCacheBundle matching rules](https://foshttpcachebundle.readthedocs.io/en/stable/reference/configuration/headers.html) enables you to specify a different TTL:
Copy file name to clipboardExpand all lines: docs/guide/cache/symfony_reverse_proxy.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,8 @@ For more information on how to configure Fastly with [[= product_name =]], see [
61
61
62
62
Support for Fastly Shielding was added in [[= product_name =]] v3.3.24 and v4.1.6.
63
63
64
-
When you extend [FOSHttpCacheBundle](https://foshttpcachebundle.readthedocs.io/en/2.9.1/),
65
-
you can also adapt your VCL further with [FOSHttpCache documentation](http://foshttpcache.readthedocs.org/en/latest/varnish-configuration.html)
64
+
When you extend [FOSHttpCacheBundle](https://foshttpcachebundle.readthedocs.io/en/stable/),
65
+
you can also adapt your VCL further with [FOSHttpCache documentation](https://foshttpcache.readthedocs.io/en/stable/varnish-configuration.html)
66
66
to use additional features.
67
67
68
68
## Configure Varnish and Fastly
@@ -77,7 +77,7 @@ Failing to configure reverse proxies correctly may introduce several problems, i
77
77
78
78
### Configure Symfony front controller
79
79
80
-
You need to consider your `TrustedProxy` configuration when you use Symfony [behind a load balancer or a reverse proxy.](https://symfony.com/doc/5.1/deployment/proxies.html)
80
+
You need to consider your `TrustedProxy` configuration when you use Symfony [behind a load balancer or a reverse proxy.](https://symfony.com/doc/5.x/deployment/proxies.html)
81
81
82
82
Set the following environment variable:
83
83
-`TRUSTED_PROXIES`: String with trusted IP, multiple proxies can be configured with a comma, for example, `TRUSTED_PROXIES="192.0.0.1,10.0.0.0/8"`
@@ -91,7 +91,7 @@ framework:
91
91
92
92
!!! caution "Careful when trusting dynamic IP using `REMOTE_ADDR` value or similar"
93
93
94
-
On Platform.sh, Varnish does not have a static IP, like with [AWS LB](https://symfony.com/doc/5.1/deployment/proxies.html#but-what-if-the-ip-of-my-reverse-proxy-changes-constantly).
94
+
On Platform.sh, Varnish does not have a static IP, like with [AWS LB](https://symfony.com/doc/5.x/deployment/proxies.html#but-what-if-the-ip-of-my-reverse-proxy-changes-constantly).
95
95
For this reason, the `TRUSTED_PROXIES` env variable supports being set to value `REMOTE_ADDR`, which is equal to:
96
96
97
97
```php
@@ -104,7 +104,7 @@ framework:
104
104
Make sure that **all** traffic always comes from the trusted proxy/load balancer,
105
105
and that there is no other way to configure it.
106
106
107
-
When using Fastly, you need to set `trusted_proxies` according to the [IP ranges used by Fastly](https://docs.fastly.com/en/guides/accessing-fastlys-ip-ranges).
107
+
When using Fastly, you need to set `trusted_proxies` according to the [IP ranges used by Fastly](https://www.fastly.com/documentation/reference/api/utils/public-ip-list/).
108
108
109
109
!!! tip
110
110
@@ -194,7 +194,7 @@ For more information about configuring Captcha fields, see [Captcha field](../..
194
194
### Use Fastly as HttpCache proxy
195
195
196
196
[Fastly](https://www.fastly.com/) delivers Varnish as a CDN service and is supported with [[= product_name =]].
197
-
To learn how it works, see [Fastly documentation](https://docs.fastly.com/guides/basic-concepts/how-fastlys-cdn-service-works).
197
+
To learn how it works, see [Fastly documentation](https://docs.fastly.com/en/guides/using-fastlys-global-pop-network).
198
198
199
199
#### Configure Fastly in YML
200
200
@@ -230,16 +230,16 @@ FASTLY_KEY="token"
230
230
231
231
#### Configure Fastly on Platform.sh
232
232
233
-
If you use Platform.sh, it is recommended to configure all environment variables through [Platform.sh variables](https://docs.platform.sh/frameworks/ibexa/fastly.html).
233
+
If you use Platform.sh, it is recommended to configure all environment variables through [Platform.sh variables](https://docs.platform.sh/guides/ibexa/fastly.html).
234
234
In [[= product_name =]], Varnish is enabled by default. To use Fastly, first you must
To get the service ID, log in to http://fastly.com. In the upper menu, click the **CONFIGURE** tab.
239
+
To get the service ID, log in to https://www.fastly.com/. In the upper menu, click the **CONFIGURE** tab.
240
240
The service ID is displayed next to the name of your service on any page.
241
241
242
-
For instructions on how to generate a Fastly API token, see [the Fastly guide](https://docs.fastly.com/guides/account-management-and-security/using-api-tokens).
242
+
For instructions on how to generate a Fastly API token, see [the Fastly guide](https://docs.fastly.com/en/guides/using-api-tokens).
243
243
The API token needs the `purge_all` an `purge_select` scopes.
0 commit comments