Skip to content

Commit 99d57a8

Browse files
committed
revert cache and upgrade run instance
1 parent 91a3149 commit 99d57a8

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ const setCORSHeaders = (res) => {
2626
const setCommonHeaders = (res) => {
2727
setCORSHeaders(res);
2828
res.setHeader('Content-Type', 'application/json');
29-
//res.setHeader('Cache-Control', 'public, max-age=21600');
30-
31-
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
32-
res.setHeader('Pragma', 'no-cache');
33-
res.setHeader('Expires', '0');
29+
res.setHeader('Cache-Control', 'public, max-age=21600');
3430
res.setHeader('Timing-Allow-Origin', '*');
3531
};
3632

terraform/modules/run-service/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ variable "secrets" {
22
default = []
33
}
44
variable "region" {
5-
default = "us-east1"
5+
default = "us-central1"
66
type = string
77
}
88
variable "environment" {
@@ -22,12 +22,12 @@ variable "entry_point" {
2222
type = string
2323
}
2424
variable "available_memory_mb" {
25-
default = "1Gi"
25+
default = "2Gi"
2626
type = string
2727
description = "The amount of memory for the Cloud Function"
2828
}
2929
variable "available_cpu" {
30-
default = "1"
30+
default = "2"
3131
type = string
3232
description = "The amount of CPU for the Cloud Function"
3333
}

0 commit comments

Comments
 (0)