You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2017/12/05 04:41:08 UTC

ignite git commit: IGNITE-4398. Prevent $http caching in IE11.

Repository: ignite
Updated Branches:
  refs/heads/master 4963e2d54 -> f41856309


IGNITE-4398. Prevent $http caching in IE11.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f4185630
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f4185630
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f4185630

Branch: refs/heads/master
Commit: f41856309f83fc3003a975a13bc893942a10b24d
Parents: 4963e2d
Author: alexdel <ve...@yandex.ru>
Authored: Tue Dec 5 11:40:35 2017 +0700
Committer: Andrey Novikov <an...@gridgain.com>
Committed: Tue Dec 5 11:40:35 2017 +0700

----------------------------------------------------------------------
 modules/web-console/backend/middlewares/api.js           | 5 +++++
 modules/web-console/frontend/app/helpers/jade/mixins.pug | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f4185630/modules/web-console/backend/middlewares/api.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/middlewares/api.js b/modules/web-console/backend/middlewares/api.js
index aa599ae..23fd7ae 100644
--- a/modules/web-console/backend/middlewares/api.js
+++ b/modules/web-console/backend/middlewares/api.js
@@ -25,6 +25,11 @@ module.exports = {
 
 module.exports.factory = () => {
     return (req, res, next) => {
+        // Set headers to avoid API caching in browser (esp. IE)
+        res.header('Cache-Control', 'must-revalidate');
+        res.header('Expires', '-1');
+        res.header('Last-Modified', new Date().toUTCString());
+
         res.api = {
             error(err) {
                 if (err.name === 'MongoError')

http://git-wip-us.apache.org/repos/asf/ignite/blob/f4185630/modules/web-console/frontend/app/helpers/jade/mixins.pug
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/helpers/jade/mixins.pug b/modules/web-console/frontend/app/helpers/jade/mixins.pug
index 3e39077..7eb4d89 100644
--- a/modules/web-console/frontend/app/helpers/jade/mixins.pug
+++ b/modules/web-console/frontend/app/helpers/jade/mixins.pug
@@ -40,7 +40,7 @@ mixin main-table(title, rows, focusId, click, rowTemplate, searchField)
             thead
                 tr
                     th
-                        lable.labelHeader.labelFormField #{title}:
+                        label.labelHeader.labelFormField #{title}:
                         .col-sm-3.pull-right(style='padding: 0')
                             input.form-control(type='text' st-search=`${searchField}` placeholder=`Filter ${title}...`)
             tbody