PHPackages                             webvpf/wn-trafficadvice-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. webvpf/wn-trafficadvice-plugin

ActiveWinter-plugin[API Development](/categories/api)

webvpf/wn-trafficadvice-plugin
==============================

Plugin for managing the amount of preload traffic. Generates a JSON response to: /.well-known/traffic-advice

v1.0.0(2y ago)18201MITPHP

Since Oct 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/WebVPF/wn-trafficadvice-plugin)[ Packagist](https://packagist.org/packages/webvpf/wn-trafficadvice-plugin)[ Docs](https://github.com/WebVPF/wn-trafficadvice-plugin)[ RSS](/packages/webvpf-wn-trafficadvice-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Traffic Advice
==============

[](#traffic-advice)

A plugin for Winter CMS that adds to the site the page `/.well-known/traffic-advice` with a JSON response containing instructions for preloading the site in the Chrome browser when it appears in Google search.

Installation Сomposer:
----------------------

[](#installation-сomposer)

```
composer require webvpf/wn-trafficadvice-plugin
```

For what
--------

[](#for-what)

If your site has search traffic from Google, then by turning on “Save failed requests” in the settings, you will see that your site receives a large number of requests for the address `https://example.com/.well-known/traffic-advice`

This is a Google proxy server that requests instructions for preloading the site, so that when the user leaves the search, the site page loads as quickly as possible.

Instead of instructions, the Google proxy server receives a 404 error, and Winter CMS records an error log (if enabled in the settings).

[![](https://user-images.githubusercontent.com/61043464/276033285-20948c5a-2e65-424b-9a71-881392ecaf29.jpg)](https://user-images.githubusercontent.com/61043464/276033359-822a875d-1f3d-4126-ab78-d2b68156e673.jpg) [![](https://user-images.githubusercontent.com/61043464/276033317-fa67d326-d86a-4780-81e9-803e74ec2b28.jpg)](https://user-images.githubusercontent.com/61043464/276033421-5028c748-d54f-4a98-a6a2-4db952c28501.jpg)

---

Traffic control
---------------

[](#traffic-control)

You can use the traffic advice's `fraction` field to control how much traffic the Private Prefetch Proxy should let through. You can start with a small fraction such as 0.3 (that is, 30%), and gradually increase it to 1.0 (that is, 100%) by adding the following JSON to a `/.well-known/traffic-advice` file, which needs to be served with the `application/trafficadvice+json` MIME type:

```
[{
  "user_agent": "prefetch-proxy",
  "fraction": 0.3
}]
```

The `fraction` field is a float between 0.0 (no prefetch at all) and 1.0 (100% of the prefetch requests get through).

It is also possible to disable this completely with the following configuration:

```
[{
  "user_agent": "prefetch-proxy",
  "disallow": true
}]
```

---

See more details

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7445b1b017644e642f1a2ac78bb6eb7565baaae3aebebe03e60e9549846f64da?d=identicon)[webvpf](/maintainers/webvpf)

---

Top Contributors

[![WebVPF](https://avatars.githubusercontent.com/u/61043464?v=4)](https://github.com/WebVPF "WebVPF (2 commits)")

---

Tags

wintercmswintercms-pluginwinter cmswintercmswintercms-plugin

### Embed Badge

![Health badge](/badges/webvpf-wn-trafficadvice-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/webvpf-wn-trafficadvice-plugin/health.svg)](https://phpackages.com/packages/webvpf-wn-trafficadvice-plugin)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M49](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
