Why during development to turn off caching?

Hello! I wrote a small page on which connects the css file, js file and image. I changed the contents of css, js, copied to a folder other picture, but with the same name (replace), refresh the page. And everything appears correctly.
Why, then, when developing disable caching? Saw myself in something like this...
header("Cache-Control: no-cache,no-store,max-age=0,must-revalidate");
header("Pragma: no-cache");

Why do it?
March 12th 20 at 08:12
2 answers
March 12th 20 at 08:14
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.
and you tell me the code to disable them? - Jodie98 commented on March 12th 20 at 08:17
@Jodie98, they need to do to disable) - Dina.DAmore commented on March 12th 20 at 08:20
@Dina.DAmoreand 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. - Jodie98 commented on March 12th 20 at 08:23
@Jodie98, the simplest (client cache) - then tick "Disable cache" in the browser. - Dina.DAmore commented on March 12th 20 at 08:26
March 12th 20 at 08:16
Why during development to turn off caching?

that would not be cached changes! your TO

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.

5bbefb1ba4ab0639740998.png

Find more questions by tags Web Development