Giter Club home page Giter Club logo

varnish-devicedetect's Introduction

Device detection in Varnish

The goal of this VCL set is to provide a simple & easy way of getting device detection going in Varnish Cache. (http://www.varnish-cache.org)

Specific problems we want to solve:

  1. Detect the most common and easily detected (mobile/tablet) platforms.
  2. Provide example VCL for using devicedetect.vcl with your existing VCL.

These are explicit not goals for this project:

  • Create a comprehensive set of capabilities per client. We don't want to spend a lot of effort on maintenance.
  • Be perfect. It usually works, but if you need guarantees you should consider the commercial offerings instead.

This project is maintained and updated by the community. If you see any false positives or missing strings, fork the git repository and send a pull request.

Requirements

You need Varnish 4. It may function with some adjustments on previous versions, but you are on your own.

It is worth noting that there is no compilation/linking required. This is VCL code only.

Your backends needs to be able to do produce different content based on what type of device this is. This can be signalled to the backend through the URL, with an extra HTTP header or with a cookie. See the INSTALL.rst file for examples.

Use cases

The following uses are envisioned for this VCL:

Installation

See the INSTALL.rst file for details.

Similar efforts

These similar efforts for User-Agent insights are known to us:

Varnish Software has a commercial offering for DeviceAtlas lookup VMOD. Contact <[email protected]> for inquiries and quotes. Read more at:

https://www.varnish-cache.org/vmod/deviceatlas-mobile-detection

There is an open source project for using OpenDDR in Varnish:

https://github.com/TheWeatherChannel/dClass

Other open efforts in this field:

Contact

This project lives on Github:

http://github.com/varnish/varnish-devicedetect/

Feature requests, bug reports and such can be added to the Github issue tracker.

This shiny piece of code is authored by Lasse Karstensen <[email protected]>.

varnish-devicedetect's People

Contributors

lkarsten avatar perbu avatar daghf avatar fredr avatar jhmartin avatar joelhandwell avatar mbgrydeland avatar huayra avatar ssm avatar db-ryan avatar pippoppo avatar stbc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.