korzystam z nextjs w trybie SSR - nadaje mu nagłówki dla odpowiedzi, ale cache w…
- User
korzystam z nextjs w trybie SSR - nadaje mu nagłówki dla odpowiedzi, ale cache w przeglądarce jak i na serwerze nie chce działać, co jest nie tak?
"HTTP/1.1 200 OK Cache-Control: public, s-maxage=3, max-age=0, stale-while-revalidate=31536000 Vary: Accept-Encoding, Accept ETag: "fixed-etag-1" Last-Modified: 2025-06-30T07:17:58.163Z X-Powered-By: Next.js Content-Type: text/html; charset=utf-8 Content-Encoding: gzip Date: Mon, 30 Jun 2025 07:17:58 GMT Connection: keep-alive Keep-Alive: timeout=5 Transfer-Encoding: chunked"
Assistant
Analiza Twoich nagłówków wskazuje na kilka potencjalnych problemów z cache:
-
max-age=0- to powoduje, że przeglądarka natychmiast uzna zasób za nieaktualny. To blokuje caching.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.