I've looked at the following link to better understand Sitefinity's client cache settings and after creating my own client cache profile and setting it as the default under System > Output Cache Settings -- Default Client Cache Profile I noticed that it has zero impact on JS or CSS files.
Next I found an article on Falafel about setting the cache control max age in the web.config.
In theory this translates into a client cache setting of one day, or 24 hours, or 86400 seconds. Interestingly though, this setting is not applied to all files. The following lists a file along with the max-age in parenthesis:
- Styles.min.css (86400 - 24 hours)
- Telerik.Web.UI.WebResources (31535796 - 364 days)
- ResponsiveDesign/layout_transformations.css (Cache-control: public, no max-age)
- App_Data/Sitefinity/WebsiteTemplates/[Template]/App_Themes/[Theme]/global/bootstrap-custom-grid.css?v=635960492829204356 (Cache-control: public, no max-age)
In fact, NONE of our custom CSS files in the Global folder of the theme have a max-age set, but looking at Firebug it does have an Expires value of roughly 2 weeks from today.
So the question is: What's the point of the Client Cache settings in Sitefinity and why does the web.config file setting only apply to Sitefinity assets?