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

Last Modified Laravel Package

dragon-code/last-modified

A small Laravel package for tracking last-modified timestamps and exposing them through HTTP headers, helping browsers, proxies, and caches avoid unnecessary re-downloads and stay in sync with your content.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Caching & performance roadmap — Informs whether to invest in conditional GET (ETag / Last-Modified → 304 Not Modified) as a cheap first step before committing to Redis, full-page response caching, or a CDN tier.
  • Bandwidth and infra cost modeling — 304 responses eliminate body payloads for repeat visitors; gives a measurable lever for read-heavy endpoints (public APIs, content pages, feeds) where egress or origin CPU is a line item.
  • Build vs. buy vs. edge — Frames the trade-off between a drop-in Laravel middleware, hand-rolled conditional-request logic, Symfony HttpCache/Laravel response cache, or offloading to Cloudflare/Fastly. The package's high opportunity score (0.94) signals unmet demand for lightweight, framework-native conditional request handling.
  • API product decisions — Relevant for polling clients (mobile sync, dashboards, status feeds) where idempotent GETs dominate; 304s reduce battery/network cost for clients and origin load for you.
  • Dependency/support policy — The package is still archived with minimal adoption, so an explicit roadmap decision remains owed: vendor the code, fork and own it, or route around it. Release 4.4.0 (Laravel 13 support) slightly softens the compatibility risk for teams on the newest framework version, but does not change the ownership question — that belongs in the platform backlog, not an individual sprint.

When to Consider This Package

Consider it when:

  • You run a Laravel app with read-heavy, cacheable GET endpoints where responses are expensive to render but change infrequently.
  • Your stack is on — or about to move to — Laravel 13: 4.4.0 explicitly adds framework compatibility, removing the most common adoption blocker for teams tracking the latest release train.
  • Clients already send If-None-Match / If-Modified-Since (browsers, standard HTTP libraries, mobile SDKs) — no client changes required.
  • You want a zero-infrastructure performance win to validate demand before funding CDN or cache-layer work.
  • The codebase is small enough to audit and the MIT license permits forking if upstream is abandoned.

Look elsewhere when:

  • Responses are personalized or per-user — per-user ETags tank cache hit rates and add complexity for little gain.
  • You already sit behind a CDN or full-page cache — the edge likely handles conditional requests more effectively.
  • You need cache invalidation, tagging, or stale-while-revalidate semantics; this is not a caching layer.
  • You cannot accept an archived dependency (8 stars, 0 dependents). Version 4.4.0 is a single compatibility bump plus housekeeping — it is not evidence of a sustained maintenance commitment, and there is still no guaranteed security-patch path. In that case, prefer an in-house middleware (~50–150 LOC) or a maintained alternative, and treat this repo as a reference implementation.

How to Pitch It (Stakeholders)

To executives: A small, MIT-licensed middleware that returns 304 Not Modified when content hasn't changed, cutting bandwidth and origin CPU for repeat visitors with no new infrastructure. The latest release adds Laravel 13 compatibility, so it isn't a dead end for teams on current framework versions — but the project remains archived and low-adoption. Pilot it on one high-traffic read endpoint, measure 304 rate and bytes saved, then decide whether to expand or fold the logic in-house.

To engineering: Standards-compliant conditional-request handling as a single Laravel middleware; low integration cost and easy to audit. Release 4.4.0 is functionally just Laravel 13 support — the rest is LICENSE/README churn — so it clears the compatibility check but does not alter the maintenance calculus. Upstream is still archived with minimal adoption, so adoption implies forking or vendoring and owning the code path. Recommend a scoped spike: confirm Laravel 13 compatibility on a branch, instrument 304 hit rate and payload savings on one endpoint, and produce a fork-or-build recommendation before broader rollout.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console