Skip to content

Commit

Permalink
bump cache to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Apr 4, 2014
1 parent edf2f81 commit 88c9118
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.use(function* (next) {

var METHODS = 'OPTIONS,HEAD,GET';
cors.call(this, METHODS);
this.response.set('Cache-Control', 'public, max-age=30');
this.response.set('Cache-Control', 'public, max-age=3600');

switch (this.request.method) {
case 'HEAD':
Expand Down Expand Up @@ -69,7 +69,7 @@ app.use(function* (next) {
var user = match[1].toLowerCase();
var METHODS = 'OPTIONS,HEAD,GET,PATCH';
cors.call(this, METHODS);
this.response.set('Cache-Control', 'public, max-age=30');
this.response.set('Cache-Control', 'public, max-age=3600');

switch (this.request.method) {
case 'HEAD':
Expand Down Expand Up @@ -101,7 +101,7 @@ app.use(function* (next) {
var repo = match[1].toLowerCase();
var METHODS = 'OPTIONS,HEAD,GET';
cors.call(this, METHODS);
this.response.set('Cache-Control', 'public, max-age=30');
this.response.set('Cache-Control', 'public, max-age=3600');

switch (this.request.method) {
case 'HEAD':
Expand Down

0 comments on commit 88c9118

Please sign in to comment.