I am developing a single page Javascript application in MAMP. My JavaScript and HTML template files are getting cached between requests.
Is there a simple way to indicate in MAMP that I want to prevent http file caching? Possibly with a .htaccess file? Where do I place the .htaccess or modify the virtual host for MAMP on Mac?
Tried this? Should work in both
.htaccess,httpd.confand in aVirtualHost(usually placed inhttpd-vhosts.confif you have included it from your httpd.conf)From http://www.askapache.com/htaccess/using-http-headers-with-htaccess.html
And optionally add the extension for the template files you are retrieving if you are using an extension other than
.htmlfor those.