c# - rebuild url with mvc bundle -


on website i'm building using built in bundling , minification. render our scripts using @scripts.render

@scripts.render("~/bundles/scripts") 

it generates link like:

bundles/scripts?v=3-duuaaegzl4yp1o4v0vl0gnj0u6gt3de8ykb41lfgs1 

here thought hash:

v=3-duuaaegzl4yp1o4v0vl0gnj0u6gt3de8ykb41lfgs1  

would smart , change if made changes inlcuded scripts seems not case.

now when trying implement custom cdn out bundling fails on updates since hash never seems change.

does know of solution change hash when script changes or if doing wring?

edit: noticed there difference in behavior depending on environment i'm using. local development seems working doesn't work on staging server. should there difference?

edit2: seems working should on production servers well. have more research on cause can be.

edit3: seem 1 causing problem in registry logrewrittenurlenabled set false allow url rewrites @ same time using dynamic content compression (gzip) have find way enable this

you're right, cache-buster hash should change if change contents of script. there's useful information how cache bundling works may here asp.net mvc bundling cache. (detecting css files changes) (internal behaviour).


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -