Where to add static pages
Attached file, a page a form accessed with ?readform, a file resource or stored in the html folder. Where should we put our company_logo.gif and tools.js files?
This afternoon we ran some tests involving large (+1Mb) files and small files (ecblank.gif).
The outcome was interesting, these are the best way to store static content:
- HTML Folder
- File resource
- Attached file
- Form
- Page
HTML Folder, file resource and attached file all gave very fast and similar figures and the form and the page gave almost 40% higher TTLB (time to last byte) values.
The speed difference between having a file stored in the HTML folder or as a file resource is so low that the benefits of being able to replicate the database is bigger than the nanoseconds in performance.
It’s therfor my recommendation to store all static information as a file resource in a database.
