Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ignore Query Strings Laravel Package

fdmind/ignore-query-strings

A lightweight Laravel package for ignoring query strings in requests and URL comparisons. Skip or strip parameters like utm_source, page, and filters so caching, routing, and matching stay consistent across URLs that differ only by query string.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Caching and performance roadmap: Decide whether to normalize marketing query parameters such as utm_*, gclid, and fbclid so paid/social traffic does not fragment the static/full-page cache. The v3.0.0 release adds URI path exclusions and default safe parameters (page, q), making it easier to extend normalization to search and pagination pages while excluding sensitive paths (e.g., admin, checkout, API).
  • Build vs. buy vs. vendor: The package is a small, MIT-licensed, single-purpose Laravel utility. It is best treated as a tactical implementation or reference, not a strategic platform dependency. Given low adoption signals—5 stars and 0 dependents—engineering should review, test, and possibly vendor/fork it rather than assume long-term maintenance. v3.0.0 is a major release; review for breaking changes and new default assumptions before adopting.
  • Feature prioritization: Prioritize cache-hit-rate improvements for marketing landing pages, content sites, and now search/pagination experiences where the new default safe params (page, q) match actual usage. Use path exclusions to avoid normalizing URLs for sensitive areas. Still deprioritize for query-string-sensitive experiences such as filters, locale switching, signed URLs, previews, or personalization unless explicitly validated and configured.
  • Experiment design: Support an A/B or before/after rollout measuring cache hit ratio, origin requests, TTFB, infrastructure cost, and conversion rate for ad/social traffic. Include tests for the new default safe params and path exclusions to confirm no unintended content or access changes.
  • Risk decisions: Use the package to force an explicit allowlist/denylist decision: which query parameters are safe to ignore, which must remain part of the cache key, and where the normalization belongs—Laravel middleware, reverse proxy, or CDN/edge. The new default safe params and default safe paths (glie, cp) must be audited against your application; override them if they do not match your routes or if they could cause cache poisoning or content mismatches. Regex escaping of param keys is a positive security improvement but does not replace a full review.

When to Consider This Package

  • Consider it when the product is a Laravel application behind static or full-page caching, and analytics show cache misses driven by marketing parameters rather than meaningful page state. The new URI path exclusions make it viable for mixed applications where only some routes should be normalized.
  • Consider it when the team has a clear, conservative list of ignorable parameters and can validate that ignoring them does not change page content, access control, or user-visible behavior. The default safe params (page, q) and default safe paths (glie, cp) reduce initial configuration but must be explicitly reviewed and overridden if they do not match your product’s semantics.
  • Consider it as a short spike or reference implementation if engineering can inspect the source, confirm Laravel-version compatibility, add tests, and roll back quickly. Because v3.0.0 is a major release, include a changelog review and regression test for path exclusions and default parameters.
  • Look elsewhere—or prefer CDN/edge cache-key rules or a small internal middleware—when the app is not Laravel, when cache normalization can be handled at the edge, when query parameters affect content or security beyond the default safe list, or when the organization requires vendor support and strong maintenance signals.
  • Given the package’s low adoption and young release history, avoid making it a critical dependency without an internal owner, test coverage, and a fork/vendor plan. The new defaults increase convenience but also increase the blast radius if they are wrong for your app.

How to Pitch It (Stakeholders)

  • To executives: This is a narrow performance/cost optimization: campaign URLs should not force the origin to regenerate the same page. The v3.0.0 release adds path exclusions and sensible defaults, broadening where the package can safely apply while lowering integration effort. A controlled pilot can improve cache hit rate, page speed, and paid/social landing-page efficiency while reducing origin load. The scope is small, measurable, and reversible, but the new defaults require a quick review.
  • To engineering: Treat this as cache-key hygiene, not a blanket “ignore all query strings” rule. v3.0.0 introduces URI path exclusions, default safe params (page, q), default safe paths (glie, cp), and regex escaping for param keys. Implement an allowlist for marketing parameters, preserve content-affecting parameters, and audit the new defaults against your routes and content model. Add tests for cache behavior and path exclusions, and instrument hit rate and origin traffic before/after. Because the package is tiny and lightly adopted—and this is a major version—review or vendor the code rather than adding it blindly.
  • To marketing/growth: The intended benefit is that UTM and ad-click parameters do not degrade landing-page performance. The new release also treats common search and pagination parameters (q, page) as safe by default, which can improve performance on content and search pages. The constraint is that campaign URLs still need analytics capture, and search/pagination normalization must not break parameter-dependent content or attribution—validate before enabling broadly.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin