doramatadora / varnish-uap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VCL User Agent parser

This is the VCL implementation of the ua-parser

Usage

Updating

uap-core definitions are, by default, compiled and included in the package. To regenerate these definitions you can run the npm run update script.

Example

import ua_parser;

sub vcl_recv {
  call useragent_parser;
  # Now req.http.normalized-user-agent exists.
}

About


Languages

Language:VCL 96.2%Language:JavaScript 3.8%