CakePHP Missing Layout on Back and Forward Buttons

We create a large CMS in CakePHP with a Croogo installation installed. Recently, we ran into a problem when the layout does not display correctly, when users press the back button in the browser (or the forward button, for that matter).

As a result, you get a view file (.ctp) using the blank layout, so no styles, js, etc. Any input or ideas would be greatly appreciated. Thanks!

FYI: modern browsers should cache the page request (cache enabled), so we look at the Auth stuff because it looks like the first thing that will be called for pages (even cached), right ?: S

Also: if the browser remains standing for a few minutes, and then we go back again and again, the pages appear as expected with the correct layout?!? Session timeout?

0
source share
1 answer

solved. This problem is caused by the small amount of javascript that was called in the include in the default layout footer.

Solving this topic was the cause of our headache: jQuery. loop line or loop object

0
source

Source: https://habr.com/ru/post/893181/


All Articles