Next.js Discord

Discord Forum

How do you implement "Add Expires headers" in Next 13?

Unanswered
Tenterfield Terrier posted this in #help-forum
Open in Discord
Tenterfield TerrierOP
What is the easiest way to implement this in Next 13? Thanks!

GRADE SUGGESTION
F34 Add Expires headers
Web pages are becoming increasingly complex with more scripts, style sheets, images, and Flash on them. A first-time visit to a page may require several HTTP requests to load all the components. By using Expires headers these components become cacheable, which avoids unnecessary HTTP requests on subsequent page views. Expires headers are most often associated with images, but they can and should be used on all page components including scripts, style sheets, and Flash.

0 Replies