as you all know, ASP.NET includes every CSS stylesheet in the Theme App_Themes folder on the page. No discussion.
But now I have a little problem with a lot of CSS files in the subject and I want to use a static content domain . I would like to download all the static content of my site from a static domain (not only CSS, but also icons, images, etc.), but now pay attention only to CSS.
My question
Is it possible to override the behavior of the Page class and for each CSS file found in the Subject folder, rewrite the <link> with the correct URL for the static content domain? I have nothing to prevent me from deploying files to http://static.domain.com/App_Themes/Theme , so at least adding the prefix to the tag is fine.
Thanks in advance.
source share