The first “dynamic” website CMS I worked on was called Vignette Storyserver in 1999. It basically worked like this.
The URL at the end of the path was (IIRC) a content ID, a template ID and a flag to bypass cache.
Broadly speaking, it tried to serve a static page and if it couldn’t be found it tried to assemble it and then would cache the file.