WordPress Disable all caching via htaccess

Place the following code between the following comments in .htaccess in public_html folder or your root folder that contains your wordpress application

  • #BEGIN WordPress
  • #END WordPress
# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "private"
</IfModule>

Source