Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Audit Tool - Report #<%= @alpha_id %></title>
<meta name="description" content="Report #<%= @alpha_id %> - <%= @vulnerabilities_count %> Vulnerabilities found on your file"/>
<% else %>
<title>Audit Tool</title>
<title>Free Gemfile.lock Vulnerability Scanner | FastRuby.io</title>
<meta name="description" content="Upload your Gemfile.lock to find vulnerabilities in your application"/>
<% end %>

Expand Down
4 changes: 4 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.week.to_i}"
}

# Compress JavaScripts and CSS.
config.assets.js_compressor = :terser
# config.assets.css_compressor = :sass
Expand Down
Loading