matthewbdaly/laravel-etag-middleware
Laravel middleware that automatically adds ETag headers to responses, enabling conditional GET requests and 304 Not Modified replies so clients can cache efficiently and save bandwidth. Simple to register and configure per route.
304 Not Modified responses, reducing bandwidth and improving repeat-load times for cacheable Laravel responses.Look elsewhere or build in-house when:
For executives: This package is a low-cost performance experiment: it can reduce bandwidth and speed up repeat visits by letting browsers and proxies revalidate cached responses instead of downloading them again. The business case is strongest when we have cacheable GET traffic and want a quick win without a platform investment. The main caveat is maturity: the package has not been released since 2020, so we should treat adoption as a small, testable bet or use it as a reference for an in-house implementation.
For engineering: It is a simple Laravel middleware that adds ETags to responses, enabling 304 conditional responses. The integration surface is small and MIT-licensed, but we should verify compatibility with our Laravel/PHP versions, test behavior with compression and CDN/proxy layers, and confirm cache variance rules for authenticated or personalized responses. Given the package’s age and size, the realistic recommendation is: evaluate quickly, prove the performance impact, and be prepared to replace it with a small maintained in-house middleware if it becomes part of the critical path.
How can I help you explore Laravel packages today?