I’m converting a style-sheet from .CSS to .ASPX, so I can load some color configurations from a database, in to my style-sheet.
Inside the aspx style-sheet would be a DB connection, a small SQL query to grab the colors, and then the rest of my css, sometimes containing ASP variables.
Will this styles.aspx page still get cached in the same way as a normal css file would?
As long as the URL isn’t constantly changing due to a querystring it will be cached just like a normal stylesheet. Browsers only see the response headers sent by the server and the content of the stylesheet, not the source code on the server.