header("Cache-Control: no-cache,no-store,max-age=0,must-revalidate"); header("Pragma: no-cache");
I'm doing adult. And want to deal with caching.Must be at least 5 levels of caching: the data (in RAM), the render module (HTML), render the page(HTML), static on the client(JS/CSS), object codes, scripts (Opcache) and have them all disabled at design time.
Why during development to turn off caching?
what not to do, but you need to disable that setting was the most comfortable? for example, I remember I changed the routing, and chrome it cache. and ctrl+shift+R did not help. had while you work with routing to browse the site via incognito mode. it's uncomfortable.
Find more questions by tags Web Development