Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
5b468647
Verified
Commit
5b468647
authored
Jun 25, 2020
by
Laurent Heirendt
✈
Browse files
proposal to set no cache in headers
parent
ddc225c8
Pipeline
#28944
passed with stages
in 1 minute and 57 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
assets/js/router.js
View file @
5b468647
...
...
@@ -3,10 +3,14 @@ function UrlExists(url, cb) {
url
:
url
,
dataType
:
'
text
'
,
type
:
'
GET
'
,
cache
:
false
,
complete
:
function
(
xhr
){
if
(
typeof
cb
===
'
function
'
)
cb
.
apply
(
this
,
[
xhr
.
status
]);
},
headers
:
{
'
Cache-Control
'
:
'
no-cache, no-store, must-revalidate
'
,
'
Pragma
'
:
'
no-cache
'
,
'
Expires
'
:
'
0
'
}
});
}
...
...
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