zoukankan
html css js c++ java
varnish-4.x VCL之User-Agent
varnish-4.x VCL之User-Agent
https://www.varnish-cache.org/docs/trunk/users-guide/devicedetection.html
https://github.com/varnishcache/varnish-devicedetect/
示例:
sub vcl_recv {
if (req.http.User-Agent ~ "iPad" ||
req.http.User-Agent ~ "iPhone" ||
req.http.User-Agent ~ "Android") {
set req.http.X-Device = "mobile";
} else {
set req.http.X-Device = "desktop";
}
}
查看全文
相关阅读:
iOS蓝牙开发(4.0)详解
iOS开发--MQTT实时处理数据
BBWebImage 设计思路
SDWebImage 加载显示 GIF 与性能问题
iOS 图片压缩方法
SDWebImage 加载显示 WebP 与性能问题
NSTimer、CADisplayLink 内存泄漏
iOS 使用矢量图
LeetCode #36 Valid Sudoku
LeetCode #35 Search Insert Position
原文地址:https://www.cnblogs.com/lixuebin/p/10814112.html
最新文章
Linux使用wget、安装Python
vs code 调试设置
造成thrift 编译构建项目失败的原因之一:thrift环境变量没设置
Android 项目中用得最多最火的第三方框架可能都在这里了
ElasticSearch head 插件安装
ElasticSearch-6.3.2 linux 安装
MySQL 5.7 for Windows 解压缩版配置安装
Redis 安装
未找到导入的项目“C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DotNetMicrosoft.DotNet.Props”
Microsoft SQL Server 2016 RC3 安装
热门文章
axis根据wsdl生成java客户端代码
jQuery将form表单的数据封装成json对象
git拉取远程分支到本地
vue环境搭建及项目介绍
Git创建本地版本库
typescript中的泛型
typescript中的接口
typescript类的修饰符
typescript中类的继承
typescript的函数
Copyright © 2011-2022 走看看