i have a fetch request that i need to protect, i am currently using Authorization header to do that but like this i cannot cache the request, how do i work around this? is there a way to "force-cache" a request even if it uses headers? if not possible why this limitation?
basically i need to have a route in my express backend accessible only by the nextjs server, i also want to be able to cache the request
The reason i need to cache the request:
I need this request to display information in my page, this information doesnt need to change frequently, so i need to kinda SSG-like render the page (i cannot use SSG because my navbar has information based on getServerSession which is a server function) and i dont want to use useSession neither to keep as much as i can server-side