We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca82685 commit c928b6cCopy full SHA for c928b6c
app.rb
@@ -15,6 +15,8 @@
15
get '/:username' do
16
#default color scheme used by github
17
headers 'Content-Type' => "image/svg+xml"
18
+ headers 'Cache-Control' => "max-age=#{60*60*24}"
19
+
20
username = params[:username].chomp('.svg') #Chomp off the .svg extension to be backwards compatible
21
svg = GithubChart.new(user: username).svg
22
stream do |out|
@@ -23,7 +25,9 @@
23
25
end
24
26
27
get '/:base/:username' do
28
29
30
31
username = params[:username].chomp('.svg')
32
33
#Makes API backwards compatible
0 commit comments