UI infra: remove cache and accept-encoding temproarily
Disable serving cache until the outage is debugged and fixed.
Change-Id: Iad0ac0d50b10ac08284c95dac2ad15e9f7172a59
diff --git a/infra/ui.perfetto.dev/appengine/main.py b/infra/ui.perfetto.dev/appengine/main.py
index 0fac701..acca00d 100644
--- a/infra/ui.perfetto.dev/appengine/main.py
+++ b/infra/ui.perfetto.dev/appengine/main.py
@@ -19,8 +19,9 @@
REQ_HEADERS = [
'Accept',
- 'Accept-Encoding',
- 'Cache-Control',
+ # TODO(primiano): re-enable once the gzip handling outage fixed.
+ # 'Accept-Encoding',
+ # 'Cache-Control',
]
RESP_HEADERS = [
diff --git a/infra/ui.perfetto.dev/appengine/requirements.txt b/infra/ui.perfetto.dev/appengine/requirements.txt
index 1faca3d..9aa5a27 100644
--- a/infra/ui.perfetto.dev/appengine/requirements.txt
+++ b/infra/ui.perfetto.dev/appengine/requirements.txt
@@ -1,2 +1,3 @@
-Flask==1.1.2
+Flask==2.2.5
+Jinja2==3.0.3
requests
diff --git a/ui/release/build_all_channels.py b/ui/release/build_all_channels.py
index 8ae9348..5549421 100755
--- a/ui/release/build_all_channels.py
+++ b/ui/release/build_all_channels.py
@@ -26,6 +26,7 @@
import sys
from os.path import dirname
+
pjoin = os.path.join
BUCKET_NAME = 'ui.perfetto.dev'
@@ -127,10 +128,10 @@
print('===================================================================')
print('Uploading to gs://%s' % BUCKET_NAME)
print('===================================================================')
- cp_cmd = [
- 'gsutil', '-m', '-h', 'Cache-Control:public, max-age=3600', 'cp', '-j',
- 'html,js,css,wasm,map'
- ]
+ # TODO(primiano): re-enable caching once the gzip-related outage is restored.
+ # cache_hdr = 'Cache-Control:public, max-age=3600'
+ cache_hdr = 'Cache-Control:no-cache'
+ cp_cmd = ['gsutil', '-m', '-h', cache_hdr, 'cp', '-j', 'html,js,css,wasm,map']
for name in os.listdir(merged_dist_dir):
path = pjoin(merged_dist_dir, name)
if os.path.isdir(path):