mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-10-15 02:49:20 +08:00
Add option to disable caching for HTML content (#366)
* feat: Global performance improve add no-cache for html * feat: Disable HTML caching * fix: eslint check * Clean up
This commit is contained in:
@@ -26,6 +26,23 @@ THE SOFTWARE.
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label">
|
||||
<label class="label">{{ $t('templates.globalSections.performance.disableHtmlCaching') }}</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<div class="field">
|
||||
<div :class="`control${disableHtmlCachingChanged ? ' is-changed' : ''}`">
|
||||
<div class="checkbox">
|
||||
<PrettyCheck v-model="disableHtmlCaching" class="p-default p-curve p-fill p-icon">
|
||||
{{ $t('templates.globalSections.performance.enableDisableHtmlCaching') }}
|
||||
</PrettyCheck>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label">
|
||||
<label class="label">{{ $t('templates.globalSections.performance.gzipCompression') }}</label>
|
||||
@@ -154,6 +171,10 @@ THE SOFTWARE.
|
||||
import PrettyCheck from '../inputs/checkbox';
|
||||
|
||||
const defaults = {
|
||||
disableHtmlCaching: {
|
||||
default: false,
|
||||
enabled: true,
|
||||
},
|
||||
gzipCompression: {
|
||||
default: true,
|
||||
enabled: true,
|
||||
|
Reference in New Issue
Block a user