Jfrog artifactory speed-up foo

Here is a quick win for jfrog's artifactory behind an apache web server using mod_ajp

# Compression
######################################################################
  SetOutputFilter DEFLATE
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js text/javascript text/css
  AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/x-javascript application/javascript
  AddOutputFilterByType DEFLATE application/json


  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html



  # Don't compress images and binary artifacts
  SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|jar)$ no-gzip dont-vary
  SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

  # Enable only to verify operation
  #DeflateFilterNote ratio
  #LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
  #CustomLog /var/log/httpd/deflate_log deflate
  ######################################################################

# Caching Override
# Set up 2 Hour caching on commonly updated fil
#################################################################################### ExpiresActive On ExpiresDefault A9200 Header append Cache-Control "proxy-revalidate" ####################################################################################
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: