asp.net mvc 4 - MVC Partial views rendering cached version -
for whatever reason, whenever build project, changes i've made view not html not displayed. instead pulls info partial view (which in our application doesn't updated when make change in view). every time build project, application serves me partial view , have go each view made changes in , make sort of html change in order changes made prior build display. eventually, functionality change, right boss doesn't want mess yet. i've tried disabling cache in chrome's dom (f12) downloading extension force page not display chached versions of pages doesn't seem help. else can until partial views removed properly?
update:
i kinda goofed on title. whats happening generated files being served me localhost rather changes made view (html or otherwise), if made changes prior build.
so in view i'd have this:
<body> <div>hello world!</div <div><h2>sample text</h2></div> </body> <script> $(document).ready(function () { //some javascript code });
which way page created else. manually made partial generated file , file doesn't rre-generate when make changes view.
so if made these changes:
<body> <div>hello world again!</div <div><h2>sample text</h2></div> </body> <script> $(document).ready(function () { //some javascript code });
and built project, not serve me these changes, grab generated file (which didn't updated changes) , serve me unless after build, go specific view , make html change (for reason making change javascript doesn't help). can see changes. , stay way until build @ point, reverts partial generated views until make html change in view.
deleting generated files way can see fix problem wasn't sure if break application , doesn't.
Comments
Post a Comment