Vue.component("http-cache-stale-config", { props: ["v-cache-stale-config"], data: function () { let config = this.vCacheStaleConfig if (config == null) { config = { isPrior: false, isOn: false, status: [], supportStaleIfErrorHeader: true, life: { count: 1, unit: "day" } } } return { config: config } }, watch: { config: { deep: true, handler: function () { this.$emit("change", this.config) } } }, methods: {}, template: `
| 启用过时缓存 | 
				 | 
		
| 有效期 | 
				 缓存在过期之后,仍然保留的时间。  | 
		
| 状态码 | 在这些状态码出现时使用过时缓存,默认支持  | 
		
| 支持stale-if-error | 
				 选中后,支持在Cache-Control中通过  |