{"id":18439954,"url":"https://github.com/varnishcache/varnish-devicedetect","last_synced_at":"2026-02-08T15:01:30.238Z","repository":{"id":2527802,"uuid":"3504210","full_name":"varnishcache/varnish-devicedetect","owner":"varnishcache","description":"VCL based device detection for Varnish Cache.","archived":false,"fork":false,"pushed_at":"2022-12-04T09:44:27.000Z","size":110,"stargazers_count":302,"open_issues_count":3,"forks_count":86,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-07-21T06:50:26.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"VCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varnishcache.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-21T13:48:51.000Z","updated_at":"2025-06-23T00:17:25.000Z","dependencies_parsed_at":"2023-01-11T16:10:44.633Z","dependency_job_id":null,"html_url":"https://github.com/varnishcache/varnish-devicedetect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/varnishcache/varnish-devicedetect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varnishcache%2Fvarnish-devicedetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varnishcache%2Fvarnish-devicedetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varnishcache%2Fvarnish-devicedetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varnishcache%2Fvarnish-devicedetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varnishcache","download_url":"https://codeload.github.com/varnishcache/varnish-devicedetect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varnishcache%2Fvarnish-devicedetect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29234154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T06:27:27.931Z","updated_at":"2026-02-08T15:01:28.592Z","avatar_url":"https://github.com/varnishcache.png","language":"VCL","funding_links":[],"categories":["VCL"],"sub_categories":[],"readme":"Device detection in Varnish\n===========================\n\nIntroduction\n------------\n\nThe goal of this VCL set is to provide a simple \u0026 easy way of getting\ndevice detection going in Varnish Cache. (https://www.varnish-cache.org)\n\nSpecific problems we want to solve:\n\n1) Detect the most common and easily detected (mobile/tablet) platforms.\n2) Provide example VCL for using devicedetect.vcl with your existing VCL.\n\nThese are explicit not goals for this project:\n\n* Create a comprehensive set of capabilities per client. We don't want to spend a lot of effort on maintenance.\n* Be perfect. It usually works, but if you need guarantees you should consider the commercial offerings instead.\n\nThis project is maintained and updated by the community. If you see any false\npositives or missing strings, fork the git repository and send a pull request.\n\n\nRequirements\n------------\n\nYou need a recent Varnish release. It may function with some adjustments on\nprevious versions, but you are on your own.\n\nIt is worth noting that there is no compilation/linking required. This is VCL\ncode only.\n\nYour backends needs to be able to do produce different content based on what\ntype of device this is. This can be signalled to the backend through the URL,\nwith an extra HTTP header or with a cookie. See the INSTALL.rst file for\nexamples.\n\nUse cases\n---------\n\nThe following uses are envisioned for this VCL:\n\n* Serve different content per device type on the same URL. This has the upside of not requiring a redirect on slow mobile networks.\n* Redirect mobile/tablets to a different URL. (http://example.com/article/1234.html -\u003e http://m.example.com/article/1234.html)\n\n\nInstallation\n------------\n\nSee the INSTALL.rst file for details.\n\n\nSimilar efforts\n---------------\n\nThese similar efforts for User-Agent insights are known to us:\n\n* https://deviceatlas.com/ (commercial)\n* https://github.com/OpenDDRdotORG (free)\n* https://www.varnish-cache.org/vmod/deviceatlas-mobile-detection (commercial VMOD for Deviceatlas by Varnish Software)\n* https://github.com/TheWeatherChannel/dClass\n* https://github.com/serbanghita/Mobile-Detect\n* https://github.com/willemk/varnish-mobiletranslate (Generate VCL from Mobile-Detect data)\n\n\nContact\n-------\n\nThis project lives on Github:\n\n    https://github.com/varnishcache/varnish-devicedetect/\n\nFeature requests, bug reports and such can be added to the Github issue tracker.\n\nThis code is currently maintained by Christopher Slowe \u003cme@keysersosa.com\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarnishcache%2Fvarnish-devicedetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarnishcache%2Fvarnish-devicedetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarnishcache%2Fvarnish-devicedetect/lists"}