Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/adapter-cloudflare-workers

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-cloudflare-workers - npm Package Compare versions

Comparing version 1.0.0-next.41 to 1.0.0-next.42

8

files/entry.js

@@ -26,7 +26,11 @@ import { Server } from 'SERVER';

const cache_control = url.pathname.startsWith(prefix + 'immutable/')
? 'public, immutable, max-age=31536000'
: 'no-cache';
return new Response(res.body, {
headers: {
// include original cache headers, minus cache-control which
// include original headers, minus cache-control which
// is overridden, and etag which is no longer useful
'cache-control': 'public, immutable, max-age=31536000',
'cache-control': cache_control,
'content-type': res.headers.get('content-type'),

@@ -33,0 +37,0 @@ 'x-robots-tag': 'noindex'

{
"name": "@sveltejs/adapter-cloudflare-workers",
"version": "1.0.0-next.41",
"version": "1.0.0-next.42",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc