Commit 2cc86aeb authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

Merge branch 'proposecache' into 'develop'

proposal to set no cache in headers

See merge request R3/howto-cards!154
parents ddc225c8 5b468647
...@@ -3,10 +3,14 @@ function UrlExists(url, cb) { ...@@ -3,10 +3,14 @@ function UrlExists(url, cb) {
url: url, url: url,
dataType: 'text', dataType: 'text',
type: 'GET', type: 'GET',
cache: false,
complete: function(xhr){ complete: function(xhr){
if(typeof cb === 'function') if(typeof cb === 'function')
cb.apply(this, [xhr.status]); cb.apply(this, [xhr.status]);
},
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0'
} }
}); });
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment