NBOCampbellToets / CampbellSoup

CampbellSoup, the web-based archive of Campbell test questions.
0 stars 1 forks source link

Separate the static content completely from the generated content #22

Open jgonggrijp opened 7 years ago

jgonggrijp commented 7 years ago

Since the scripts, stylesheets etcetera do not need to share a common origin with the server-generated json and html, there is no reason for the paths to the static resources to be hardcoded relative to the dynamic resources. Advantages of a configurable "static origin" include flexibility (because you can move the static content without moving the server side) and performance (because you can put the static content on CDN and you can avoid unnecessarily sending cookie data on static data requests).