1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 15:25:33 -04:00

trying another dumb cache busting technique in send_view.js

This commit is contained in:
2020-08-23 12:39:17 -04:00
parent e64e1fff1a
commit 7fafef712b
3 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
const axios = require("axios");
const { v4: uuidv4 } = require("uuid");
exports.handler = function (event, context, callback) {
try {
@@ -64,6 +65,7 @@ exports.handler = function (event, context, callback) {
"x-api-endpoint": endpointHost,
"x-api-response": shortFeedback,
"x-api-latency": response.elapsedTime,
"x-api-id": uuidv4(),
},
body: response.data.toString("base64"),
isBase64Encoded: true,