{"id":23900842,"url":"https://github.com/born05/sveltekit-cache-control","last_synced_at":"2025-04-10T21:02:22.503Z","repository":{"id":260085226,"uuid":"786837035","full_name":"born05/sveltekit-cache-control","owner":"born05","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-18T19:48:57.000Z","size":405,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T05:56:49.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/born05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-15T11:57:27.000Z","updated_at":"2024-10-29T11:02:37.000Z","dependencies_parsed_at":"2024-10-29T13:29:50.480Z","dependency_job_id":null,"html_url":"https://github.com/born05/sveltekit-cache-control","commit_stats":null,"previous_names":["born05/sveltekit-cache-control"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born05%2Fsveltekit-cache-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born05%2Fsveltekit-cache-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born05%2Fsveltekit-cache-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born05%2Fsveltekit-cache-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/born05","download_url":"https://codeload.github.com/born05/sveltekit-cache-control/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232518497,"owners_count":18535972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T20:39:46.890Z","updated_at":"2025-01-04T20:39:47.430Z","avatar_url":"https://github.com/born05.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SvelteKit Cache Control\n\nA simple way to add control caching in your SvelteKit project.\n\nInstall:\n\n```\nnpm i -D @born05/sveltekit-cache-control\n```\n\nExample usage:\n\n```ts\nimport { sequence } from '@sveltejs/kit/hooks';\nimport type { Handle } from '@sveltejs/kit';\nimport { proxyHandle } from '@born05/sveltekit-cache-control';\n\nconst svelteHandle: Handle = async ({ event, resolve }) =\u003e {\n  const response = await resolve(event);\n\n  return response;\n};\n\nexport const handle = sequence(\n  cacheControlHandle(env.REDIS_URL, { etagCacheKey: 'some-etag' }),\n  svelteHandle,\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn05%2Fsveltekit-cache-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborn05%2Fsveltekit-cache-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn05%2Fsveltekit-cache-control/lists"}