{"id":23121890,"url":"https://github.com/krol44/nuxt-smart-cache","last_synced_at":"2025-04-04T04:14:11.355Z","repository":{"id":64177209,"uuid":"573923043","full_name":"krol44/nuxt-smart-cache","owner":"krol44","description":"cache pages on ssr to the disk, anti-ddos","archived":false,"fork":false,"pushed_at":"2022-12-05T01:17:29.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T20:57:19.249Z","etag":null,"topics":["anti-ddos","nodependence","nuxt","nuxtjs","spa","ssr"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krol44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-03T21:24:46.000Z","updated_at":"2024-02-10T00:02:46.000Z","dependencies_parsed_at":"2023-01-15T02:45:34.586Z","dependency_job_id":null,"html_url":"https://github.com/krol44/nuxt-smart-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krol44%2Fnuxt-smart-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krol44%2Fnuxt-smart-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krol44%2Fnuxt-smart-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krol44%2Fnuxt-smart-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krol44","download_url":"https://codeload.github.com/krol44/nuxt-smart-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117765,"owners_count":20886439,"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":["anti-ddos","nodependence","nuxt","nuxtjs","spa","ssr"],"created_at":"2024-12-17T07:17:25.662Z","updated_at":"2025-04-04T04:14:11.336Z","avatar_url":"https://github.com/krol44.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nuxt-smart-cache\n\n[![NPM version](https://img.shields.io/npm/v/@krol44/nuxt-smart-cache)](https://www.npmjs.com/package/@krol44/nuxt-smart-cache)\n\n## About\n\nNuxtjs 2 module - cache pages on ssr to the disk, anti-ddos\n\n## Demo\n\nhttps://langlija.com - if you press f5 many times, spa mode will be activated\n\n## Setup\n\n1. `npm i --save @krol44/nuxt-smart-cache`\n2. `add to nuxt.config.js`\n\n\n```javascript\nmodules: [\n  ['@krol44/nuxt-smart-cache', {\n    antiDdos: {\n      // default true\n      enable: true,\n      // default - 20 request for 5 seconds and will be locked\n      maxRequestsForTime: [20, 5],\n      // default 600 seconds\n      timeToLockingSsr: 600\n    },\n    cache: {\n      // default true\n      enable: true,\n      // default - /tmp/nuxt_cache_pages\n      pathTempFiles: '/tmp/langlija_cache_pages',\n      // default - token\n      nameCookieForDisable: 'token',\n      // default - true\n      rmAllAfterStart: false,\n      // default - 3600 seconds\n      ttlFile: 3600 * 24 * 10,\n      // default - []\n      ignorePages: [\n        '/',\n        /\\/dictionary.*/\n      ]\n    }\n  }]\n]\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrol44%2Fnuxt-smart-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrol44%2Fnuxt-smart-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrol44%2Fnuxt-smart-cache/lists"}