In order to prevent browser caching while building the application (development envorinment), it is very desirable to append a query with the LastWrittenDateTime to the end of the content file.
This should be done when using the @Url.Content method.
Comments: Hi, starting with Razor v2 most users now use the ~/ automatic path resolution feature instead of calling Url.Content. Because of that, we feel that adding additional features that Url.Content is not as useful as it might otherwise have been. If an application has a need for this type of pattern we recommend writing a custom helper for use in the application.
This should be done when using the @Url.Content method.
Comments: Hi, starting with Razor v2 most users now use the ~/ automatic path resolution feature instead of calling Url.Content. Because of that, we feel that adding additional features that Url.Content is not as useful as it might otherwise have been. If an application has a need for this type of pattern we recommend writing a custom helper for use in the application.