fix #344: prevent caching WebDAV requests

This commit is contained in:
antelle 2016-09-11 21:40:34 +03:00
parent d74bc86b29
commit d07de9c098
2 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,9 @@ var StorageWebDav = StorageBase.extend({
xhr.setRequestHeader(header, value);
});
}
if (['GET', 'HEAD'].indexOf(config.method) >= 0) {
xhr.setRequestHeader('Cache-Control', 'no-cache');
}
if (config.data) {
var blob = new Blob([config.data], {type: 'application/octet-stream'});
xhr.send(blob);

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.3.2 (WIP)
`-` fix #351: error alert on power shutdown
`-` fix #344: prevent caching WebDAV requests
##### v1.3.1 (2016-09-02)
`-` fix #337: storage sync error