File tree 1 file changed +2
-1
lines changed
Distribution/Server/Features 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -608,13 +608,15 @@ coreFeature ServerEnv{serverBlobStore = store} UserFeature{..}
608
608
tarball <- indexTarballLegacyGz <$> readAsyncCache cacheIndexTarball
609
609
let tarballmd5 = show $ tarGzHashMD5 tarball
610
610
cacheControl [Public , NoTransform , maxAgeMinutes 5 ] (ETag tarballmd5)
611
+ enableRange
611
612
return $ toResponse tarball
612
613
613
614
serveIncremPackagesIndexTarGz :: DynamicPath -> ServerPartE Response
614
615
serveIncremPackagesIndexTarGz _ = do
615
616
tarball <- indexTarballIncremGz <$> readAsyncCache cacheIndexTarball
616
617
let tarballmd5 = show $ tarGzHashMD5 tarball
617
618
cacheControl [Public , NoTransform , maxAgeMinutes 5 ] (ETag tarballmd5)
619
+ enableRange
618
620
return $ toResponse tarball
619
621
620
622
serveIncremPackagesIndexTar :: DynamicPath -> ServerPartE Response
@@ -623,7 +625,6 @@ coreFeature ServerEnv{serverBlobStore = store} UserFeature{..}
623
625
let tarballmd5 = show $ tarHashMD5 tarball
624
626
cacheControl [Public , NoTransform , maxAgeMinutes 5 ] (ETag tarballmd5)
625
627
enableRange
626
- enableGZip' 3 -- Low compression level to save server CPU
627
628
return $ toResponse tarball
628
629
629
630
-- TODO: should we include more information here? description and
You can’t perform that action at this time.
0 commit comments