The problem I am having is partial files(*.html) are getting cached by browser. While developing it's not a big problem but once I deploy the application, clients see the old page(s) until they clear their cache or hit ctrl F5 I have tried specifying meta tags(CACHE-CONTROL,EXPIRES) but still see those pages getting picked up from cache in the developer tool of chrome (Maybe I am missing something here?).
I was going to try and add some random number in front of the url like
<div ng-include src="'views/test.html?i=1000'"></div>
But came across https://groups.google.com/forum/#!topic/angular/9gORRowzP2M ,where James cook rightly states that this way would fill cache with partials over and over.
I read somewhere that it's better to set the meta tags in headers from the server but I don't know how to do that? I was thinking of somehow doing it in an http interceptor?Maybe somehow add meta tags in request or response of this httpinterceptor? https://gist.github.com/gnomeontherun/5678505
Any ideas how to do that? Or if it's good/bad idea? Or any other way to prevent partial pages getting cached by browser?