Enable browser caching of static resources

This sends the Cache-Control header to allow caching of static resources,
and checks the If-Modified-Since header to allow browser to use the
cached resource on refresh. Also fixes some paths that caused redirects
(core//foo -> core/foo)
This commit is contained in:
Jakob Borg
2015-08-08 13:48:09 +02:00
parent dad1fb7805
commit 257d1afdf8
8 changed files with 19 additions and 13 deletions

View File

@@ -2,6 +2,6 @@ angular.module('syncthing.core')
.directive('shutdownDialog', function () {
return {
restrict: 'A',
templateUrl: 'syncthing/core//shutdownDialogView.html'
templateUrl: 'syncthing/core/shutdownDialogView.html'
};
});