Skip to content

Commit

Permalink
Add cache headers for .mp4 and .webm video files
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmurphy committed Jan 16, 2020
1 parent 815dfca commit d06d042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cache-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ cacheLookup.set('font/woff', oneYear);
cacheLookup.set('font/ttf', oneYear);
cacheLookup.set('font/otf', oneYear);

// videos
cacheLookup.set('video/mp4', oneYear);
cacheLookup.set('video/webm', oneYear);

// JSON
cacheLookup.set('application/json', oneHour);

0 comments on commit d06d042

Please sign in to comment.