next-cache-components
Expertise in Next.js 16 caching strategies, including the use of cache directives and component-level caching for optimized performance.
Install this skill
Security score
The next-cache-components skill was audited on Mar 2, 2026 and we found 32 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 86 | cacheTag(`user-${id}`); |
Template literal with variable interpolation in command context
| 88 | const res = await fetch(`https://api.example.com/users/${id}`); |
Template literal with variable interpolation in command context
| 122 | cacheTag(`user-profile-${userId}`); |
Template literal with variable interpolation in command context
| 124 | const user = await fetch(`/api/users/${userId}`).then(r => r.json()); |
Template literal with variable interpolation in command context
| 187 | cacheTag(`blog-${slug}`); |
Template literal with variable interpolation in command context
| 189 | return fetch(`/api/posts/${slug}`).then(r => r.json()); |
Template literal with variable interpolation in command context
| 214 | cacheTag('products', `product-${id}`); |
Template literal with variable interpolation in command context
| 216 | return fetch(`/api/products/${id}`).then(r => r.json()); |
Template literal with variable interpolation in command context
| 234 | revalidateTag(`product-${id}`); |
Template literal with variable interpolation in command context
| 255 | cacheTag('blog', `blog-${slug}`); // Specific post |
Template literal with variable interpolation in command context
| 257 | cacheTag('blog', `blog-comments-${postId}`); // Post comments |
Template literal with variable interpolation in command context
| 263 | revalidateTag(`blog-${slug}`); |
Template literal with variable interpolation in command context
| 308 | cacheTag(`product-${productId}`); |
Template literal with variable interpolation in command context
| 310 | const product = await fetch(`/api/products/${productId}`).then(r => r.json()); |
Template literal with variable interpolation in command context
| 354 | cacheTag('users', `user-${id}`); |
Template literal with variable interpolation in command context
| 415 | cacheTag('products', `product-${id}`); |
Template literal with variable interpolation in command context
| 423 | cacheTag('products', category ? `category-${category}` : 'all-products'); |
Template literal with variable interpolation in command context
| 441 | cacheTag(`product-${id}`); |
Fetch to external URL
| 59 | const data = await fetch('https://api.example.com/data'); |
Fetch to external URL
| 97 | const res = await fetch('https://api.example.com/posts'); |
Fetch to external URL
| 364 | const data = await fetch('https://api.example.com/data', { |
Fetch to external URL
| 374 | return fetch('https://api.example.com/data').then(r => r.json()); |
External URL reference
| 59 | const data = await fetch('https://api.example.com/data'); |
External URL reference
| 88 | const res = await fetch(`https://api.example.com/users/${id}`); |
External URL reference
| 97 | const res = await fetch('https://api.example.com/posts'); |
External URL reference
| 364 | const data = await fetch('https://api.example.com/data', { |
External URL reference
| 374 | return fetch('https://api.example.com/data').then(r => r.json()); |
External URL reference
| 475 | - [Next.js Caching Documentation](https://nextjs.org/docs/app/building-your-application/caching) |
External URL reference
| 476 | - [use cache Directive](https://nextjs.org/docs/app/api-reference/directives/use-cache) |
External URL reference
| 477 | - [cacheLife API](https://nextjs.org/docs/app/api-reference/functions/cacheLife) |
External URL reference
| 478 | - [cacheTag API](https://nextjs.org/docs/app/api-reference/functions/cacheTag) |
External URL reference
| 479 | - [Partial Prerendering](https://nextjs.org/docs/app/building-your-application/rendering/partial-prerendering) |
Install this skill with one command
/learn @oimiragieo/next-cache-components