Using server side includes or ssi ,AWS S3

4.7k Views Asked by At

Is there any way to use ssi on cloudfront or or is it categorized as dynamic content? I would like to have sections like a header, nav or sidebar be able to use one file.

example:i have some html files,they use the same "header" section,i only want to change "header.shtml" and all files will change. The html files sotrge with S3.

enter code here<!--#include virtual="/includes/header.shtml" -->
1

There are 1 best solutions below

4
On

Amazon S3 does not support SSI. All content hosted on S3 is static content.

You could process the files locally before you upload them to S3 and handle any code includes. Then, once you have the final version, just upload that to S3.