Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
3bec6131
Commit
3bec6131
authored
Apr 05, 2017
by
Adam Niedzielski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how ETag caching middleware handles query parameters
parent
d4349ba6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
doc/development/polling.md
doc/development/polling.md
+6
-0
No files found.
doc/development/polling.md
View file @
3bec6131
...
@@ -39,6 +39,12 @@ Instead you should use polling mechanism with ETag caching in Redis.
...
@@ -39,6 +39,12 @@ Instead you should use polling mechanism with ETag caching in Redis.
1.
If the
`If-None-Match`
header does not match the current value in Redis
1.
If the
`If-None-Match`
header does not match the current value in Redis
we have to generate a new response, because the resource changed.
we have to generate a new response, because the resource changed.
Do not use query parameters (for example
`?scope=all`
) for endpoints where you
want to enable ETag caching. The middleware takes into account only the request
path and ignores query parameters. All parameters should be included in the
request path. By doing this we avoid query parameter ordering problems and make
route matching easier.
For more information see:
For more information see:
-
[
RFC 7232
](
https://tools.ietf.org/html/rfc7232
)
-
[
RFC 7232
](
https://tools.ietf.org/html/rfc7232
)
-
[
ETag proposal
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/26926
)
-
[
ETag proposal
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/26926
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment