Files
karma/main.go
Łukasz Mierzwa ba34e92791 fix(backend): correctly handle expires for static files
We can't set any headers after c.Abort() was called (which will happen in the static files middleware if file was found) so we need to refactor this code. New logic will be: set all headers early, if file is found response will include those, later add second middleware that clears those headers, it will only be hit if file wasn't found, so we'll clear headers on all 404s
2019-04-09 19:48:48 +01:00

7.0 KiB