Yum snippet

 

Find Java installation on a rpm based Linux

rpm -qa |egrep 'jdk|java'

Search for Java package on rpm based Linux

 

 yum search java | egrep 'sun|oracle'

 

Update hold Java Package

 yum --exclude=java-1.7.0-oracle* update

 

Leverage browser caching with varnish

Put following in your default.vcl file, all files that deliver with png,jpg,css add  http cache control header max-age

 

sub vcl_backend_response {
# Happens after we have read the response headers from the backend.
#
# Here you clean the response headers, removing silly Set-Cookie headers
# and other mistakes your backend does.
if (bereq.url ~ “\.(png|gif|jpg|swf|css|js)$”) {
unset beresp.http.set-cookie;
set beresp.http.cache-control = “max-age = 2592000”;

}
}