#
# cache.config
#
# The purpose of this file is to alter caching parameters of
# specific objects or sets of objects
#
# Each line consists of a set of tag value pairs. The pairs
# are in the format <tag>=<value>
#
# Each line must include exactly one primary specifier
#
# Primary destination specifiers are
# dest_domain=
# dest_host=
# dest_ip=
# url_regex=
#
#
# Lines may include any number of the secondary specifiers but
# secondary specifiers may not be duplicated on the same line
#
# Secondary specifiers are
# port=
# scheme=
# prefix=
# suffix=
# method=
# time=
# src_ip=
#
# Each line must include exactly one cache directive
# Cache directives are
# action=never-cache
# action=ignore-no-cache (client & server no cache)
# action=ignore-client-no-cache (only client no cache)
# action=ignore-server-no-cache (only server no cache)
# pin-in-cache=<time>
# revalidate=<time>
# ttl-in-cache=<time> (force caching and expire after <time>)
#
# Each line may also contain various "tweaks" which adjust caching parameters.
# Tweaks are
# cache-responses-to-cookies=<value>
# - Change the style of caching with regard to cookies. This effectively
# overrides the configuration parameter
# proxy.config.http.cache.cache_responses_to_cookies
# and uses the same values with the same semantics. The override happens
# only for requests that match.
#
# Examples
#
# Revalidate all http objects from www.example.com after 2 hours
# dest_domain=www.example.com scheme=http revalidate=2h
#
#
##http black url
url=http://www.baidu.com/ action=never-cache
url=http://www.soso.com/ action=never-cache ##http video file type
url_regex=.* suffix=flv,f4v,hlv,fhv,letv,ts,avi,mov,rm,rmvb,ram,wmv,mkv,mp3,mp4,wma,mid,asf,wav,asx,m2ts,msu,aac,ape,flac,m4a,midi,dbts,265ts,amp4,f4vcrc,265tscrc,m4s ttl-in-cache=720h ##http download file type
url_regex=.* suffix=exe,msi,rar,iso,cab,psf,zip,gz,tgz,bzip,bzip2,ta,bz2,tar,m4r,dpk,pak,apk,ipa,xap,pdf,esd,appxbundle,mds,mtz,7z,patch,patch2,vcdiff,aup,gmz,apt,dll,dmg,dat,cup,001,002,003,eupd,dangbei,dac ttl-in-cache=240h ##http dynamic request
url_regex=.* suffix=asp,aspx,php,do,dwr,cgi,fcgi,action,axd,json,py,perl,lua,m3u8 action=never-cache

cache.config文件配置模板的更多相关文章

  1. records.config文件配置模板

    # # # Process Records Config File # # <RECORD-TYPE> <NAME> <TYPE> <VALUE (till ...

  2. remap.config文件配置模板

    # # URL Remapping Config File # # Using remap.config allows you to accomplish two things: # # 1) Rew ...

  3. c#Winform程序调用app.config文件配置数据库连接字符串 SQL Server文章目录 浅谈SQL Server中统计对于查询的影响 有关索引的DMV SQL Server中的执行引擎入门 【译】表变量和临时表的比较 对于表列数据类型选择的一点思考 SQL Server复制入门(一)----复制简介 操作系统中的进程与线程

    c#Winform程序调用app.config文件配置数据库连接字符串 你新建winform项目的时候,会有一个app.config的配置文件,写在里面的<connectionStrings n ...

  4. SSH自动登录config文件配置

    title: SSH自动登录config文件配置 comments: false date: 2019-08-19 19:29:13 description: 更方便的 ssh 操作??? categ ...

  5. C# app.config文件配置和修改

    很多时候我们需要对系统的.config文件进度读写操作,例如:系统初始化的参数的更改.系统参数的改变都需要更新到配置文件. 首先我们有必要了解一下app.config.exe.config和vshos ...

  6. 跨域Ajax请求 web.config文件配置

    在web.config文件的<system.webServer>节点下面添加如下配置代码:<!--允许跨域ajax访问--> <httpProtocol> < ...

  7. Web.Config文件配置之限制上传文件大小和时间

    在邮件发送系统或者其他一些传送文件的网站中,用户传送文件的大小是有限制的,因为这样不但可以节省服务器的空间,还可以提高传送文件的速度.下面介绍如何在Web.Config文件中配置限制上传文件大小与时间 ...

  8. 通过config文件配置动态导入模块

    需求: 固定的服务中要调用不同的算法,当前服务中实现的动态导入是通过在config配置中加上参数:proto="AiProto(1,4)",在服务中from pathname im ...

  9. Winform 数据库连接app.config文件配置 数据库连接字符串

    1.添加配置文件 新建一个winform应用程序,类似webfrom下有个web.config,winform下也有个App.config;不过 App.config不是自动生成的需要手动添加,鼠标右 ...

随机推荐

  1. jq交叉轮播图变种【闪一下黑】

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  2. 明星单品tab

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  3. 算法实现之python篇

    Python source code: gradient_boosting_regression.py from sklearn import ensemblefrom sklearn.metrics ...

  4. 2-Sat+输出可行解(个人模版)

    2-Sat+输出可行解: //LightOJ 1251 #include<stdio.h> #include<string.h> #include<vector> ...

  5. hihoCoder 1051 补提交卡(贪心,枚举)

    #1051 : 补提交卡 时间限制:2000ms 单点时限:1000ms 内存限制:256MB 描述 小Ho给自己定了一个宏伟的目标:连续100天每天坚持在hihoCoder上提交一个程序.100天过 ...

  6. 类A是公共的,应在名为A.java的文件中声明错误

    第一种!!! “类A是公共的,应在名为A.java的文件中声明”这句话需要分两步来理解: 1.如果类A被声明为公共的(public),那么必须将类A保存在名为A.java的文件中: 2.反之,在一个文 ...

  7. HDFS(数学题)

    题目连接:http://acm.tju.edu.cn/toj/showp.php?pid=4119 4119.   HDFS Time Limit: 5.0 Seconds   Memory Limi ...

  8. 转:深入理解Java的接口和抽象类

    转载原文链接: http://www.cnblogs.com/dolphin0520/p/3811437.html 一.抽象类 在了解抽象类之前,先来了解一下抽象方法.抽象方法是一种特殊的方法:它只有 ...

  9. 20170723-Ioc与AOP

    Ioc与AOP 功能.语法.分类.原理.例子.补充(AOP-Ioc-DI) 1.AOP: ①功能体现:是拦截,过滤器: ②相关语法:借助特性语法作为切入点: ③实现方式分类:动态代理+静态织入: ④实 ...

  10. Spring MVC 学习总结(一)——MVC概要与环境配置 转载自【张果】博客

    Spring MVC 学习总结(一)--MVC概要与环境配置   目录 一.MVC概要 二.Spring MVC介绍 三.第一个Spring MVC 项目:Hello World 3.1.通过Mave ...