M
M
Mikhail A.2021-12-17 11:07:53
PHP
Mikhail A., 2021-12-17 11:07:53

Laravel and Chrome?

Found a very strange behavior of the site on Laravel in Chrome.

Introductory: PHP 7.4 with +/- default parameters, a simple self-written site on Laravel 8 from several pages on blades + a simple self-written admin panel.

What is strange: when you go to the pages of the site, each time all the pages are loaded as if in a completely new way, which is why there is a noticeable “blinking” on the colored header of the site. As if nothing is being cached. But DevTools shows that caching is there and working.

The problem is observed only in Chrome, in all other browsers (Edge Chromium, Opera, Firefox, Yandex) the site works as it should, i.e. there is no such "blinking" and every time you go to another page, the header of the site does not seem to be reloaded.

Everything would be fine, I thought that this was some kind of bug / feature in Chrome, but after climbing various sites I found that Chrome shows normal sites on many sites and there is no “blinking” when switching to other pages on many sites.

I accidentally discovered that if you make any manipulations with input: file in the admin panel, then everything immediately becomes normal, as if the cache miraculously turns on and works as it should.

What could it be and how can it be overcome? How can input:file affect the cache at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio Solo, 2021-12-17
@solotony

blinking is a slow rendering of the page, so look at the page load log, what exactly is slowing down there. This is hardly CSS - more likely some problems in JS scripts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question