diff --git a/src/nginxconfig/generators/conf/general.conf.js b/src/nginxconfig/generators/conf/general.conf.js index 3a024cb..b3ce8cc 100644 --- a/src/nginxconfig/generators/conf/general.conf.js +++ b/src/nginxconfig/generators/conf/general.conf.js @@ -41,9 +41,9 @@ export default (domains, global) => { }; if (global.logging.accessLog.computed) config['location = /robots.txt'].access_log = 'off'; - if (global.performance.changesTakeEffect.computed) { - // Take effect in time for html - config['# Take effect in time for html'] = ''; + if (global.performance.disableHtmlCaching.computed) { + // Disable HTML caching for changes take effect in time + config['# Disable HTML caching'] = ''; const loc = `location ~* \\.(?:${extensions.html})$`; config[loc] = { add_header: 'Cache-Control "no-cache"', @@ -135,7 +135,6 @@ export default (domains, global) => { config.brotli_types = gzipTypes; } - // Done! return config; }; diff --git a/src/nginxconfig/i18n/de/templates/global_sections/performance.js b/src/nginxconfig/i18n/de/templates/global_sections/performance.js index d43b201..f1e7b25 100644 --- a/src/nginxconfig/i18n/de/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/de/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Gzip Komprimierung', enableGzipCompression: `${common.enable} Gzip Komprimierung`, brotliCompression: 'Brotli Komprimierung', diff --git a/src/nginxconfig/i18n/en/templates/global_sections/performance.js b/src/nginxconfig/i18n/en/templates/global_sections/performance.js index 200ff98..aad39fa 100644 --- a/src/nginxconfig/i18n/en/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/en/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Gzip compression', enableGzipCompression: `${common.enable} gzip compression`, brotliCompression: 'Brotli compression', diff --git a/src/nginxconfig/i18n/es/templates/global_sections/performance.js b/src/nginxconfig/i18n/es/templates/global_sections/performance.js index 5103f9b..85d98f4 100644 --- a/src/nginxconfig/i18n/es/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/es/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Compresión Gzip', enableGzipCompression: `${common.enable} compresión gzip`, brotliCompression: 'Compresión Brotli', diff --git a/src/nginxconfig/i18n/fr/templates/global_sections/performance.js b/src/nginxconfig/i18n/fr/templates/global_sections/performance.js index 4b866bd..17218ea 100644 --- a/src/nginxconfig/i18n/fr/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/fr/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Compression Gzip', enableGzipCompression: `${common.enable} la compression gzip`, brotliCompression: 'Compression Brotli', diff --git a/src/nginxconfig/i18n/pl/templates/global_sections/performance.js b/src/nginxconfig/i18n/pl/templates/global_sections/performance.js index 6955669..3f16b83 100644 --- a/src/nginxconfig/i18n/pl/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/pl/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Kompresja gzip', enableGzipCompression: `${common.enable} kompresję gzip`, brotliCompression: 'Kompresja brotli', diff --git a/src/nginxconfig/i18n/pt-br/templates/global_sections/performance.js b/src/nginxconfig/i18n/pt-br/templates/global_sections/performance.js index 61cc7a1..4f3631f 100644 --- a/src/nginxconfig/i18n/pt-br/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/pt-br/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Compressão Gzip', enableGzipCompression: `${common.enable} compressão gzip`, brotliCompression: 'Compressão Brotli', diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/performance.js b/src/nginxconfig/i18n/ru/templates/global_sections/performance.js index d721277..2d502c0 100644 --- a/src/nginxconfig/i18n/ru/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/ru/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Gzip сжатие', enableGzipCompression: `${common.enable} gzip сжатие`, brotliCompression: 'Brotli сжатие', diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js index d523bb9..b360658 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js @@ -27,15 +27,15 @@ THE SOFTWARE. import common from '../../common'; export default { + disableHtmlCaching: '禁用 HTML 缓存', gzipCompression: 'Gzip 压缩', - enableGzipCompression: `${common.enable}Gzip压缩`, + enableGzipCompression: `${common.enable} Gzip 压缩`, brotliCompression: 'Brotli 压缩', enableBrotliCompression: `${common.enable} Brotli 压缩`, brotliIsANonStandardModule: 'Brotli 并不是一个 standard NGINX 模块, 请查看 ', brotliGoogleNgxBrotliProject: 'Google ngx_brotli 项目', brotliForBuildingNginxWithBrotli: ' 以构建支持 Brotli 的 NGINX!', - changesTakeEffect: '变更及时生效', - enableChangesTakeEffect: `${common.enable}变更及时生效`, + enableChangesTakeEffect: `禁用 HTML 缓存`, expirationForAssets: '资源有效期', expirationForMedia: '媒体资源有效期', expirationForSvgs: 'SVGs有效期', diff --git a/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js b/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js index daf3359..f8ff202 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - changesTakeEffect: 'Changes take effect in time', - enableChangesTakeEffect: `${common.enable} changes take effect in time`, + disableHtmlCaching: 'Disable HTML caching', + enableChangesTakeEffect: `disable HTML caching`, gzipCompression: 'Gzip 壓縮', enableGzipCompression: `${common.enable}Gzip壓縮`, brotliCompression: 'Brotli 壓縮', diff --git a/src/nginxconfig/templates/global_sections/performance.vue b/src/nginxconfig/templates/global_sections/performance.vue index f462f77..69592db 100644 --- a/src/nginxconfig/templates/global_sections/performance.vue +++ b/src/nginxconfig/templates/global_sections/performance.vue @@ -30,13 +30,13 @@ THE SOFTWARE.