Added Worker build ID to BASE_HTML

This commit is contained in:
dangered wolf 2022-08-05 20:24:06 -04:00
parent 4fa983b8ea
commit 6a556e79d2
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 6 additions and 5 deletions

View file

@ -155,6 +155,7 @@ const cacheWrapper = async (event: FetchEvent): Promise<Response> => {
: request.url
);
console.log('userAgent', userAgent);
console.log('cacheUrl', cacheUrl);
const cacheKey = new Request(cacheUrl.toString(), request);

View file

@ -18,9 +18,8 @@ String.prototype.format = function (options: { [find: string]: string }) {
};
export const Strings = {
BASE_HTML: `<!DOCTYPE html>
<html {lang}>
<!--
BASE_HTML: `<!DOCTYPE html><html {lang}><!--
@ -32,8 +31,9 @@ export const Strings = {
A better Tweet embedding service
by @dangeredwolf, et al.
-->
<head>{headers}</head>`,
--><head>{headers}</head>
<!-- Worker build ${RELEASE_NAME} -->`,
ERROR_HTML: `<!DOCTYPE html>
<html lang="en">
<head>