Weave Code
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

Http Cache Laravel Package

friendsofsymfony/http-cache

PHP library to integrate apps with HTTP caching proxies (Varnish, NGINX, Symfony HttpCache, Fastly, Cloudflare). Send efficient cache invalidation/purge and tag requests, abstract proxy features, and test caching/invalidation with PHPUnit tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Performance Optimization: Accelerate API/website response times by leveraging HTTP caching proxies (e.g., Varnish, Nginx) to reduce backend load and latency.
  • Build vs. Buy: Buy—avoids reinventing caching proxy integration logic, reducing dev time and maintenance overhead.
  • Roadmap Prioritization:
    • High-priority for high-traffic applications (e.g., e-commerce, SaaS platforms) where caching reduces costs and improves scalability.
    • Aligns with initiatives to decouple frontend/backend or adopt edge caching (e.g., CDN integration).
  • Use Cases:
    • Cache Invalidation: Automatically purge stale content (e.g., after user updates, promotions, or dynamic data changes).
    • Testing: Validate caching behavior in staging/production without manual proxy configuration.
    • Multi-Proxy Support: Standardize invalidation logic across Varnish, Nginx, or Symfony’s built-in cache.

When to Consider This Package

  • Adopt When:
    • Your PHP/Laravel app uses Varnish, Nginx, or Symfony HttpCache as a proxy.
    • You need programmatic cache invalidation (e.g., after CRUD operations).
    • Your team lacks expertise in low-level HTTP cache protocol handling (e.g., PURGE requests).
    • You’re prioritizing scalability (reducing backend load via caching).
    • You want to test caching logic in CI/CD without manual proxy setup.
  • Look Elsewhere If:
    • You’re using non-HTTP caching (e.g., Redis, Memcached) without a proxy layer.
    • Your stack is non-PHP (e.g., Node.js, Python).
    • You need advanced edge caching (e.g., Cloudflare Workers) with custom logic—consider vendor-specific SDKs.
    • Your team prefers serverless caching (e.g., AWS CloudFront invalidations via API).

How to Pitch It (Stakeholders)

For Executives: "FOSHttpCache lets us leverage Varnish/Nginx to slash backend load by caching responses—cutting costs and improving speed for users. It’s a turnkey solution for cache invalidation (e.g., after product updates), reducing dev time and manual errors. With minimal setup, we can test caching in staging and scale efficiently. ROI: Lower server costs, faster pages, and happier users."

For Engineering: *"This package abstracts HTTP cache proxy integration (Varnish/Nginx) into Laravel/Symfony, giving us:

  • Automated invalidation: One line to purge cached routes after data changes.
  • Cross-proxy support: Works with Varnish, Nginx, or Symfony’s cache.
  • Testability: Mock invalidations in CI without live proxies.
  • Low maintenance: Actively developed (last release: 2026), with clear docs. Tradeoff: Tight coupling to HTTP proxies—ideal if we’re already using them. For edge cases, we’d need custom logic."*
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky