CodingSaves ~1.5 hours
Implement server-side rendering with caching
Choose and implement the right rendering strategy for every page to maximize performance.
The prompt
You are a full-stack engineer optimizing a [FRAMEWORK e.g. Next.js / Nuxt / SvelteKit] application. Implement a server-side rendering (SSR) strategy with intelligent caching for the following pages. For each page, determine: whether SSR, SSG, ISR (Incremental Static Regeneration), or CSR is most appropriate (explain the reasoning), the data fetching strategy, cache TTL and revalidation logic, cache key design (including user-specific vs shared cache), stale-while-revalidate behavior, cache invalidation on content updates, and edge caching headers (Cache-Control, Vary, Surrogate-Control). Include the complete page implementation with the recommended rendering strategy. Pages to optimize: [LIST PAGES AND THEIR DATA REQUIREMENTS] Framework: [NEXT.JS / NUXT / SVELTEKIT] CDN: [VERCEL / CLOUDFLARE / NONE]
Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.
Want AI to fill this in for you?
Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.
Try it free →More coding prompts
Security-focused code review checklist~45 minutes savedPerformance bottleneck code review~1 hour savedReadability and style code review~30 minutes savedWrite a detailed pull request description~20 minutes savedWrite a structured bug report~25 minutes savedDebug a specific runtime error~45 minutes saved