Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d0ed7152c456
Unverified
Commit
028bca7b
authored
Mar 15, 2017
by
Rémy Coutable
Browse files
Fix typo in doc/development/polling.md: `If-None-Modified` -> `If-None-Match`
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
5a876c908b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/development/polling.md
View file @
d0ed7152
...
...
@@ -27,13 +27,13 @@ Instead you should use polling mechanism with ETag caching in Redis.
1.
When a client makes a request we set the
`ETag`
response header to the value
from Redis.
1.
The client caches the response (client-side caching) and sends the ETag as
the
`If-None-M
odified
`
header with every subsequent request for the same
the
`If-None-M
atch
`
header with every subsequent request for the same
resource.
1.
If the
`If-None-M
odified
`
header matches the current value in Redis we know
1.
If the
`If-None-M
atch
`
header matches the current value in Redis we know
that the resource did not change so we can send 304 response immediately,
without querying the database at all. The client's browser will use the
cached response.
1.
If the
`If-None-M
odified
`
header does not match the current value in Redis
1.
If the
`If-None-M
atch
`
header does not match the current value in Redis
we have to generate a new response, because the resource changed.
For more information see:
...
...
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