mirror of
https://github.com/skidoodle/erettsegi-browser.git
synced 2025-02-15 05:39:15 +01:00
dumb cache control test?!?!?!
This commit is contained in:
@@ -15,6 +15,7 @@ export default async function handler(
|
||||
}
|
||||
|
||||
try {
|
||||
res.setHeader('Cache-Control', 's-maxage=31536000')
|
||||
const { protocol, host } = new URL(link)
|
||||
if (protocol && host) {
|
||||
const response = await fetch(link, { method: 'HEAD' })
|
||||
|
||||
Reference in New Issue
Block a user