Rob Sedgwick
Rob Sedgwick

Reputation: 5226

Jekyll - Setting Cache Headers and gzip

Just getting going with Jekyll - running it on Debian, base install, base config.yml.

I am serving some static resources from a url ( and folder named the same )

/assets

How would I go about setting some cache headers on stuff in there ?

Done much searching and reading the docs and not much finding. Config setting ??

Hope I can be pointed in the right direction.

Cheers!

Rob

Upvotes: 4

Views: 1508

Answers (2)

crisscross
crisscross

Reputation: 1695

One great alternative is the s3_website script (https://github.com/laurilehmijoki/s3_website). It syncs your static files with S3 from AWS and can set headers and also gzip selected files. It works really nice and does all with one command.

Upvotes: 1

mipadi
mipadi

Reputation: 411192

Headers, gzipping, and such would be handled by your web server, and the exact configuration mechanism and details will differ from server to server.

Upvotes: 5

Related Questions