fix: add proper cache control headers (#2617)
The whole point of `asset()` is to enable caching. Yet we were not adding cache control headers... :D --------- Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
bd16a65587
commit
1f9fb91c4d
@@ -155,7 +155,7 @@ export async function withChildProcessServer(
|
||||
for await (const line of lines.values({ preventCancel: true })) {
|
||||
output.push(line);
|
||||
const match = line.match(
|
||||
/https?:\/\/localhost:\d+(\/\w+[-\w]*)*/g,
|
||||
/https?:\/\/[^:]+:\d+(\/\w+[-\w]*)*/g,
|
||||
);
|
||||
if (match) {
|
||||
address = match[0];
|
||||
|
||||
Reference in New Issue
Block a user