Skip to content

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Sep 12, 2025

No description provided.

@soyuka soyuka force-pushed the fix/laravel-http-cache-compat branch 2 times, most recently from 3aa1a92 to 86dc12c Compare September 12, 2025 14:55
Copy link

@joedixon joedixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of suggestions on here which solved my immediate issues and the http_cache config values are now applied correctly 🙌

However, this doesn't seem to resolve the issue if I set the cache headers on the eloquent model like so:

#[ApiResource(
    cacheHeaders: [
        'public' => true,
        'max_age' => 200,
    ]
)]
class User extends Authenticatable { }

@soyuka soyuka force-pushed the fix/laravel-http-cache-compat branch 2 times, most recently from 9b3088e to e3d95e9 Compare September 15, 2025 15:40
@soyuka soyuka force-pushed the fix/laravel-http-cache-compat branch from e3d95e9 to 608f174 Compare September 15, 2025 15:58
@soyuka soyuka merged commit fa2bc95 into api-platform:4.1 Sep 16, 2025
111 of 113 checks passed
@soyuka soyuka deleted the fix/laravel-http-cache-compat branch September 16, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants