Skip to content

Instantly share code, notes, and snippets.

@kenny-io
Created April 7, 2024 21:44
Show Gist options
  • Save kenny-io/f4e98e7a5d7d6ff486a4930dcecaca88 to your computer and use it in GitHub Desktop.
Save kenny-io/f4e98e7a5d7d6ff486a4930dcecaca88 to your computer and use it in GitHub Desktop.
export default async (event, context) => {
return new Response(JSON.stringify({ message: 'Hello World' }), {
headers: {
'content-type': 'application/json',
'Netlify-Cache-ID': 'productID-1,products'// Set your custom cache IDs here
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment