diff options
author | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-02 10:00:58 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-02 10:00:58 +0000 |
commit | d366ea14380b828daadce14023f0d623b87fe0b3 (patch) | |
tree | 07cf7cb229bfc78a3f0522bf127a25f765bae7ee /app/assets/javascripts/lib | |
parent | 7287fd09e264ad5b8efceab4b1919c92769856b9 (diff) | |
download | gitlab-ce-d366ea14380b828daadce14023f0d623b87fe0b3.tar.gz |
circumvent browser cache on browser back navigation
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index 30925940807..31faa11ea72 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -616,6 +616,17 @@ export const roundOffFloat = (number, precision = 0) => { return Math.round(number * multiplier) / multiplier; }; +/** + * Represents navigation type constants of the Performance Navigation API. + * Detailed explanation see https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation. + */ +export const NavigationType = { + TYPE_NAVIGATE: 0, + TYPE_RELOAD: 1, + TYPE_BACK_FORWARD: 2, + TYPE_RESERVED: 255, +}; + window.gl = window.gl || {}; window.gl.utils = { ...(window.gl.utils || {}), |