Where should site assets actually go?

Jul 13, 2012 at 3:29 AM

I'm currently deploying the related css, js and png files to the /Style Library/ on the site collection that you activate this feature on.

I'm not convinced that's the right place to go.

/Style Library/

  • Power user can modify them if necessary
  • Cached as from a single location (across the entire site collection)


  • I really would like to package them under /_layouts/ - then the entire solution is deployed to that one folder, and can be enabled or removed cleanly without modifying the site collection at all.  Problem with this is that resources will now be references relative to each web, and won't cache if you change to a sub-web.