OkunaOrg / okuna-www

🚀 The Okuna website code.
https://okuna.io
GNU Affero General Public License v3.0
130 stars 41 forks source link

Increase page speed #127

Open duichwer opened 5 years ago

duichwer commented 5 years ago

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).

Example for redirection:

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

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.

lifenautjoe commented 5 years ago

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 notifications@github.com 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 .

duichwer commented 5 years ago

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

julia-r commented 5 years ago

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...

duichwer commented 5 years ago

@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