© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Jocke

Laravel Vapor gzip

Hi.
I'm trying to enable gzip responses in Laravel Vapor. I created a middleware similar to this one: https://bannister.me/blog/gzip-compression-on-laravel-vapor. I have added it to the web middleware group.

It works perfectly on all ajax requests! But the first request is never gzipped?

I tried adding my middleware under middleware in my filament panel provider. But then Filament stops working completely. I get a response with all the HTML but no navigation or ajax works.

Does anyone know how to solve this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

File Uploads with Laravel Vapor
FilamentFFilament / ❓┊help
3y ago
502 Bad Gateway Error on Laravel Vapor
FilamentFFilament / ❓┊help
2y ago
FileUpload randomly fails to upload on Laravel Vapor
FilamentFFilament / ❓┊help
17mo ago
How compile assets in filament for Laravel vapor.
FilamentFFilament / ❓┊help
3y ago