Skip to content

Commit

Permalink
Adding cache buster to index.html tuzig#445 (tuzig#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
shech2 authored and daonb committed Jan 23, 2024
1 parent db6aea9 commit 77c5ee8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aatp/peerbook_webrtc/admin.spec.ts
Expand Up @@ -238,7 +238,7 @@ test.describe('peerbook administration', () => {
const fromPeerbook = await page.$$('.from-peerbook')
expect(fromPeerbook.length).toBe(0)
})
test('try login with an invalid email', async ({ browser }) => {
test('try subscribe with an invalid email', async ({ browser }) => {
// TODO: rename to context2
context = await browser.newContext()
page = await context.newPage()
Expand All @@ -261,7 +261,7 @@ test.describe('peerbook administration', () => {
await sleep(100)
if (await page.locator('[data-test="twr-minimized"]').isVisible())
await page.click('[data-test="twr-minimized"]')
await page.keyboard.type('login')
await page.keyboard.type('subscribe')
await page.keyboard.press("Enter")
await sleep(100)
let twr = await getTWRBuffer(page)
Expand All @@ -279,9 +279,9 @@ test.describe('peerbook administration', () => {
twr = await getTWRBuffer(page)
expect(twr).toMatch(/Invalid credentials/)
})
test('try login with an invalid OTP', async () => {
test('try subscribe with an invalid OTP', async () => {
await sleep(100)
await page.keyboard.type('login')
await page.keyboard.type('subscribe')
await page.keyboard.press("Enter")
await sleep(100)
let twr = await getTWRBuffer(page)
Expand All @@ -299,9 +299,9 @@ test.describe('peerbook administration', () => {
twr = await getTWRBuffer(page)
expect(twr).toMatch(/Invalid credentials/)
})
test('login with a valid email & OTP', async () => {
test('subscribe with a valid email & OTP', async () => {
await sleep(100)
await page.keyboard.type('login')
await page.keyboard.type('subscribe')
await page.keyboard.press("Enter")
await sleep(100)
let twr = await getTWRBuffer(page)
Expand Down
3 changes: 3 additions & 0 deletions index.html
Expand Up @@ -3,6 +3,8 @@
<head>
<meta charset="utf-8">
<title>Terminal 7</title>
<!-- Cache control meta tags -->
<meta http-equiv="Cache-Control" content="public, max-age=86400" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no" />
<meta name="description" content="A touchable terminal multiplexer & emulator running over WebRTC">
<link rel="icon" href="/logo.svg" type="image/svg+xml">
Expand All @@ -14,6 +16,7 @@
<meta name="apple-mobile-web-app-title" content="Terminal7" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<script type="module" src="/main.ts"></script>

</head>
<body>
<div id="terminal7">
Expand Down
4 changes: 4 additions & 0 deletions netlify.toml
@@ -0,0 +1,4 @@
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=86400"

0 comments on commit 77c5ee8

Please sign in to comment.