silviolleite / laravel-pwa

Looks like an app, feels like an app, but IS NOT an app.
MIT License
969 stars 155 forks source link

Feature request: Add caching headers for manifest.json #55

Open MrMage opened 3 years ago

MrMage commented 3 years ago

I noticed that https://github.com/silviolleite/laravel-pwa/blob/master/Http/Controllers/LaravelPWAController.php does not add Cache-Control: and Expires: headers to the response for manifest.json. It seems like this causes Chrome to re-download manifest.json with every navigation.

Would it be possible for the route registrar to add the corresponding caching middleware with a configurable delay, e.g. one hour?

ffmit commented 3 years ago

Is it an option to control this using the HTTP Server? I like to control everything there.