Cache headers control¶
The server allow to control the cache headers at the server level or directly on a template file response or on streamed files. The following options are presented below.
No Cache¶
Warning
This will override all headers applied on a template or a streamed file.
This configuration by default enabled for all responses including templates and streamed files. This is enabled by default for security reasons and to force no cache on everything.
Here is an example to enforce this default value:
1 2 3 4 5 |
|
Global cache control¶
Warning
This will override all headers applied on a template or a streamed file.
This will allow to manage all cache headers values for all responses including templates and streamed files.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Global ETag support¶
Warning
This will override all headers applied on a template or a streamed file.
This configuration will be applied to all responses, for all requests.
Here is an example of configuration to allow ETag support globally:
1 2 3 4 5 6 7 |
|
ETag specific template file header¶
You can override the headers on a specific template to add Cache-Control
and others on it.
The following example will show how to disable the "no-cache" feature and add a Cache-Control
header that will allow the ETag support in browsers:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
ETag specific stream file header¶
You can override the headers on streamed files to add Cache-Control
and others on them.
The following example will show how to disable the "no-cache" feature and add a Cache-Control
header that will allow the ETag support in browsers:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|