Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e4e2024

Browse files
committed
chore(code.angularjs.org): increase the cache duration
This is already set, but wasn't checked in
1 parent 02f4ca4 commit e4e2024

File tree

1 file changed

+2
-2
lines changed
  • scripts/code.angularjs.org-firebase/functions

1 file changed

+2
-2
lines changed

scripts/code.angularjs.org-firebase/functions/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const path = require('path');
66

77
const gcsBucketId = `${process.env.GCLOUD_PROJECT}.appspot.com`;
88

9-
const BROWSER_CACHE_DURATION = 300;
10-
const CDN_CACHE_DURATION = 600;
9+
const BROWSER_CACHE_DURATION = 60 * 10;
10+
const CDN_CACHE_DURATION = 60 * 60 * 12;
1111

1212
function sendStoredFile(request, response) {
1313
let filePathSegments = request.path.split('/').filter((segment) => {

0 commit comments

Comments
 (0)