about summary refs log tree commit homepage
path: root/extras/try_gzip_static.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extras/try_gzip_static.rb')
-rw-r--r--extras/try_gzip_static.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/try_gzip_static.rb b/extras/try_gzip_static.rb
index 57b899f..b8abb03 100644
--- a/extras/try_gzip_static.rb
+++ b/extras/try_gzip_static.rb
@@ -77,6 +77,7 @@ class TryGzipStatic
       "Last-Modified" => st.mtime.httpdate,
       "Accept-Ranges" => "bytes",
     }
+    h["Cache-Control"] = "no-transform" unless mime =~ %r{\Atext\/}
     h["Content-Encoding"] = "gzip" if gz_st
     h
   end