#
# 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. Spring Boot修改启动端口

    spring boot是个好东西,可以不用容器直接在main方法中启动,而且无需配置文件,方便快速搭建环境.可是当我们要同时启动2个springboot工程时,就会有问题,有可能会因为8080端口被第 ...

  2. VirtualBox - RTR3InitEx failed with rc=-1912 (rc=-1912)

    有一天重启电脑后虚拟机virtual box突然打不开了,提示类似 https://askubuntu.com/questions/900794/virtualbox-rtr3initex-faile ...

  3. spring 多线程 写入数据库 和 写入 xml文件

    最近工作中遇到一个需求 多线程先爬取页面 然后将爬取的结果持久化到数据库中 ,一些大文本的内容需要持久化到 xml文件中; 下面是运行后的结果: xml 文件写入结果: 数据库写入结果: 再来张项目结 ...

  4. Messagepack原理

    什么是Messagepack? 用官方的话说:MessagePack是一种高效的二进制序列化格式.它允许您像JSON一样在多个语言之间交换数据.但是,它更快并且更小.小整数被编码为一个字节,和典型的短 ...

  5. Link-Cut-Trees

    填坑,填坑,填坑…… 开篇镇人品……下文的比喻仅供娱乐…… 为了迎接JSZX校内互测,我临时填坑学了LCT…… 怎么说呢……我也是懵懵懂懂地看了N篇博客,对着标程敲上一发代码,然后才慢慢理解.这里推荐 ...

  6. BZOJ 2463: [中山市选2009]谁能赢呢?(新生必做的水题)

    2463: [中山市选2009]谁能赢呢? Time Limit: 10 Sec  Memory Limit: 128 MBSubmit: 2372  Solved: 1750[Submit][Sta ...

  7. BZOJ 1411&&Vijos 1544 : [ZJOI2009]硬币游戏【递推,快速幂】

    1411: [ZJOI2009]硬币游戏 Time Limit: 10 Sec  Memory Limit: 162 MBSubmit: 897  Solved: 394[Submit][Status ...

  8. HDU2689-Sort it-冒泡排序

    Sort it Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Sub ...

  9. HDU--2021

    发工资咯:) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Sub ...

  10. TI-RTOS 之 事件同步(Event, 类似semaphore)

    TI-RTOS 之 事件同步(Event, 类似semaphore) Event 是类似Semaphore的存在,官方如下描述: SYS/BIOS events are a means of comm ...