I'm trying to avoid caching my Html files. I've tried to work with rev & rev-replace. the result is that only file names are changed but the file's references in the stateprovider aren't changed so it is been resulted with files not found error.
this is part of my config.js which has the stateProvider:
$stateProvider .state('landingPage', { url: "/home", templateUrl: "views/landingPage/landingPage.html", })
this is part of my gulp file:
gulp.task('copyHtml', ['copyAll','useRef'], function () {
return gulp.src('app/views/**/*.html')
.pipe(htmlmin({ collapseWhitespace: true, removeComments: true }))
.pipe(rev())
.pipe(revReplace())
.pipe(gulp.dest('dist/views'));
});
how do i change the files reference in the config.js?
The content is not refreshing only on mobile (chrome on android). I've tried to change the html files's names manually and in the stateProvider but it dosn't work either.
How do i avoid browser caching???
thanks