-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag Helpers for CDNs #102
Comments
I have created an Azure Web App using MVC and EF. The main objective is to serve video media. I am currently using Google CDN but have not found a clear sample of code that shows how to manage and deliver the media from the MVC web app interacting with the Google CDN. Or, for that matter, the Microsoft Azure services. |
@bmgarelick1 For I personally use image sources directly from the CDN, even in development. If they don't already offer a Tag Helper for images, you could build your own. https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/authoring |
Thanks, I'll take a look.
…Sent from my iPhone 7 Plus
On Jan 11, 2017, at 7:39 PM, Luke Latham <notifications@github.com<mailto:notifications@github.com>> wrote:
@bmgarelick1<https://github.com/bmgarelick1> For link and script, you'll probably want to take a look at the <environment> Tag Helper ... https://github.com/aspnet/MusicStore/blob/dev/samples/MusicStore/Views/Shared/_Layout.cshtml#L57-L70 ... which allows you to swap local assets for CDN-based assets based on the environment (Development, Staging, Production, etc.).
I personally use image sources directly from the CDN, even in development. If they don't already offer a Tag Helper for images, you could build your own. https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/authoring
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#102 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ARhJE2vSJheoqjBl7SiDqCpODUtktG9Tks5rRaB2gaJpZM4EE3K6>.
|
Should be covered by #2698 |
Fixed by by #2698 |
Page descriptions
MVC -> Views -> Working with CDNs
[Edit Rick-Anderson] #2785
[Edit Tom Dykstra] commit with deleted article stub
The text was updated successfully, but these errors were encountered: