I was just wondering if files loaded via php include is getting cached by the browser (my expected behaviour)
im trying to figure out a better way to designing my template engine..
i've always used php includes for header, footer, and etc.. for templating
but now considering going back to using dreamweaver templates w/c basically writes each web page w/ the full document code (inclusive of header, footer and all) and upon updating of the , say, header part, Dreamweaver rewrites all the pages that uses the said template.
I used to think this was a crude, noobish way to do templating, but now i'm realizing that' it's really pretty smart.. no more inlcudes and other processes, just plain good old page serving most of the required visual data. I "think" this is faster than apache having to run more threads for each include. and also that the pages are fully cached..
like visiting home.php the second time will result to minimal bandwidth costs.. vs php include, if NOT CACHED, has to send , for example the header.php data, again and again in the browser at every visit.
Also, DW templates actually make it easier for me to code/design, where php includes are often rendered in visiual views/tools
Just wondering...
PS As a backgrounder, i've actually used DW Templates w/ PHP templating (sort of a hybrid way of using DW) .. i've gotten really comfortable w/ this method and found it to be really straight forward.. hence im not really a stranger to either DW or PHP templating.