okuna-www icon indicating copy to clipboard operation
okuna-www copied to clipboard

Increase page speed

Open duichwer opened this issue 5 years ago • 5 comments

The Website could be improved server side to increase page-speed.

Better page speed might result in more people who get known to okuna via search.

On _.htaccess with default parameters could be added that can be renamed to '.htaccess' on production. (similiar to TYPO3).

  • [ ] Enable Caching of js, images, fonts
  • [ ] Improve Redirection to avoid chains of redirection
  • [ ] Enable optional zipping (gzip) for assets

Example for redirection:

RewriteEngine On
	RewriteCond %{SERVER_PORT} !=443 [OR]
	RewriteCond %{HTTP_HOST} !^www\.
	RewriteRule ^(.*)$ https://www.okuna.io/$1 [R=301,L]

duichwer avatar Aug 19 '19 20:08 duichwer

The website is deployed on AWS S3 and uses AWS CloudFront as CDN, so there isn't a whole lot we can do server-side, apart from the options AWS provides to us.

We do plan to make some performance improvements on the client-side, however.

jozsefsallai avatar Aug 28 '19 19:08 jozsefsallai

We are using Lambdas to set some extra security headers though, so we could add some extras there related to caching 🤔

On Wed, 28 Aug 2019 at 21:06, József Sallai [email protected] wrote:

The website is deployed on AWS S3 and uses AWS CloudFront as CDN, so there isn't a whole lot we can do server-side, apart from the options AWS provides to us.

We do plan to make some performance improvements on the client-side, however.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OkunaOrg/okuna-www/issues/127?email_source=notifications&email_token=ADBFXZIKU3V32GG2S3AGXQTQG3EBVA5CNFSM4INFUSH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5MEZ5I#issuecomment-525880565, or mute the thread https://github.com/notifications/unsubscribe-auth/ADBFXZL66UV2M2YGWUQ5KILQG3EBVANCNFSM4INFUSHQ .

lifenautjoe avatar Aug 28 '19 19:08 lifenautjoe

https://aws.amazon.com/de/blogs/aws/new-gzip-compression-support-for-amazon-cloudfront/ Maybe this is helpful?

duichwer avatar Aug 28 '19 19:08 duichwer

Hi, I noticed that some of the image assets are huge (both in file size and image dimensions). Resizing and compressing them can also increase page speed. I can have a look into that...

julia-r avatar Oct 06 '19 09:10 julia-r

@julia-r I'm not sure if this will help the most. If you have experience with AWS Cloudfront Hosting it might be useful to look what can be setup to set caching rules and enabling zipping of the assets. I have no experience with the S3 AWS Cloudfront setup, but maybe the following is helpful: https://serverfault.com/a/770469

duichwer avatar Oct 06 '19 10:10 duichwer