Client side caching could be enabled by putting a Web.config file with the following content in the directory that contains the files that should be cached:
Using the above example the files will be cached for 10 days in the browser. Detailed information about the <clientCache> element can be found here.
To disable the cache settings in a subdirectory, just create a new Web.config file in that folder and override the cache settings:
You can also use the <location> element to define the cache settings for a specific file: