mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Add crawler delay config + dynamic config values (#11018)
This commit is contained in:
@@ -436,7 +436,10 @@ func (o ObjectInfo) GetActualSize() (int64, error) {
|
||||
// Using compression and encryption together enables room for side channel attacks.
|
||||
// Eliminate non-compressible objects by extensions/content-types.
|
||||
func isCompressible(header http.Header, object string) bool {
|
||||
if crypto.IsRequested(header) || excludeForCompression(header, object, globalCompressConfig) {
|
||||
globalCompressConfigMu.Lock()
|
||||
cfg := globalCompressConfig
|
||||
globalCompressConfigMu.Unlock()
|
||||
if !cfg.Enabled || crypto.IsRequested(header) || excludeForCompression(header, object, cfg) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user