class SetCacheHeaders (View source)

Methods

Response
handle(Request $request, Closure $next, string|array $options = [])

Add cache related HTTP headers.

array
parseOptions(string $options)

Parse the given header options.

Details

Response handle(Request $request, Closure $next, string|array $options = [])

Add cache related HTTP headers.

Parameters

Request $request
Closure $next
string|array $options

Return Value

Response

Exceptions

InvalidArgumentException

protected array parseOptions(string $options)

Parse the given header options.

Parameters

string $options

Return Value

array

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.