I have read in Magento 2 Dev Docs for Public content we can set no-cache HTTP headers for Controllers that don’t use layouts(last line in page).
Controllers that don’t use layouts should set no-cache HTTP headers.
I have a controller which use data from session object and when we enable FPC it doesn't work.
So I'm thinking to set no-cache HTTP headers for that controller may get data from the session object.
Let me know if I'm wrong somewhere.
Thanks
Best Answer
If you look in
Line 85 onwards:
That may help. Good luck!