Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
http_cache_control
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
http_cache_control
Commits
a83f5251
Commit
a83f5251
authored
4 months ago
by
Dieter Holvoet
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3195743
by dieterholvoet: Improve documentation on how to create a variation
parent
81c91c48
No related branches found
Branches containing commit
No related tags found
1 merge request
!17
Improve the description of the vary setting
Pipeline
#357832
passed
4 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
http_cache_control.module
+6
-1
6 additions, 1 deletion
http_cache_control.module
with
6 additions
and
1 deletion
http_cache_control.module
+
6
−
1
View file @
a83f5251
...
...
@@ -7,6 +7,7 @@
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\Core\Site\Settings
;
/**
* Implements hook_help().
...
...
@@ -225,9 +226,13 @@ function http_cache_control_form_system_performance_settings_alter(&$form, FormS
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Header variation'
),
'#default_value'
=>
$config
->
get
(
'cache.http.vary'
),
'#description'
=>
t
(
'
C
omma
separated list of
headers to vary cache globally
.'
),
'#description'
=>
t
(
'
A c
omma
-
separated list of
request header names that could have influenced the generation of this response
.'
),
];
if
(
!
Settings
::
get
(
'omit_vary_cookie'
))
{
$form
[
'variation'
][
'vary'
][
'#description'
]
.
=
' '
.
t
(
"The 'Cookie' header is automatically added."
);
}
$form
[
'#submit'
][]
=
'http_cache_control_form_system_performance_settings_submit'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment