PHPackages                             fdmind/ignore-query-strings - 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. [Caching](/categories/caching)
4. /
5. fdmind/ignore-query-strings

ActiveLibrary[Caching](/categories/caching)

fdmind/ignore-query-strings
===========================

If your website has static caching on, and you drive traffic to it from social media, Google Ads and other sources that add query string parameters to the URL, there is a chance that each time new user visits a page, it will not be served from cache, but will be generated from scratch. This is because the URL with query string parameters is treated as a different URL from the one without query string parameters.

v3.0.0(1y ago)53.8k↓50%3[1 issues](https://github.com/4dmind/ignore-query-strings/issues)MITPHPPHP ^8.0

Since Aug 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/4dmind/ignore-query-strings)[ Packagist](https://packagist.org/packages/fdmind/ignore-query-strings)[ Docs](https://github.com/4dmind/ignore-query-strings.git)[ RSS](/packages/fdmind-ignore-query-strings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

Ignore Query String Parameters
==============================

[](#ignore-query-string-parameters)

If your website has static caching on, and you drive traffic to it from social media, Google Ads and other sources that add query string parameters to the URL, there is a chance that each time new user visits a page, it will not be served from cache, but will be generated from scratch. This is because the URL with query string parameters is treated as a different URL from the one without query string parameters.

You could always set `'ignore_query_strings' => true`, but that would mean that you would not be able to use query string parameters in your templates.

This addon allows to have both: ignore query string parameters for caching purposes, but still be able to use them in your templates.

> DISCLAIMER: Addon will not work if you have full static caching on and Nginx rules set up to serve static html files directly.

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require fdmind/ignore-query-strings
```

How to Use
----------

[](#how-to-use)

Addon comes with `ignore-query-strings.php` config file, where you can specify which query string parameters Statamic should allow or deny. By default, it is set to allow only most popular parameters, but you can remove and add your own.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance41

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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

Every ~143 days

Total

5

Last Release

432d ago

Major Versions

v1.0.2 → v2.02023-09-06

v2.0.1 → v3.0.02025-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/17e27884915af74b7ffd89e3cfe0c8300d1437cc260b409bf730a27d9bb49e45?d=identicon)[krzemo](/maintainers/krzemo)

---

Top Contributors

[![Krzemo](https://avatars.githubusercontent.com/u/1293123?v=4)](https://github.com/Krzemo "Krzemo (10 commits)")[![mikemartin](https://avatars.githubusercontent.com/u/414211?v=4)](https://github.com/mikemartin "mikemartin (1 commits)")

---

Tags

statamicstatic-caching4dmind

### Embed Badge

![Health badge](/badges/fdmind-ignore-query-strings/health.svg)

```
[![Health](https://phpackages.com/badges/fdmind-ignore-query-strings/health.svg)](https://phpackages.com/packages/fdmind-ignore-query-strings)
```

###  Alternatives

[statamic/statamic

Statamic

824170.4k](/packages/statamic-statamic)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)[aryehraber/statamic-captcha

Protect your Statamic forms using a Captcha service

16194.4k](/packages/aryehraber-statamic-captcha)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[stillat/relationships

Provides bi-directional entry relationship automation

2257.4k1](/packages/stillat-relationships)

PHPackages © 2026

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