How to disable cache of Apache?

This is especially useful when doing local web development as the files are no longer cached by the browser.

if you are using htaccess then you can do like

 #Initialize mod_rewrite
 RewriteEngine On
 <FilesMatch "\.(html|htm|js|css)$">
   FileETag None
   <IfModule mod_headers.c>
     Header unset ETag
     Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
     Header set Pragma "no-cache"
     Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT"
   </IfModule>
 </FilesMatch>

Source: https://stackoverflow.com/questions/22891965/how-to-disable-cache-of-apache