For a limited-time, upgrade to +Blizzard for $30 USD and receive the following:

— a free copy of Oblivion Light.
— a free copy of WebFlake Trackers Bundle.
— a free WF Halloween Member Badges (PSD).

You can visit this thread below for more details regarding the original promotion.
CLICK HERE

Contact @Davlin to make a purchase or for questions / comments.

Jump to content
mr-pimpen

how to make website faster

Recommended Posts

i see some members are asking the question how to speed up there website i will give the basics!

first things first you will not get your website 100% perfect that would take lots of time and money to hire some professional to do so here is a simple way to make your site run smooth with a few things to add to your .htaccess file in the root of your domain !

for Leverage browser caching add

<IfModule mod_expires.c>
  ExpiresActive On

  # Images
  ExpiresByType image/jpeg "access plus 1 year"
  ExpiresByType image/gif "access plus 1 year"
  ExpiresByType image/png "access plus 1 year"
  ExpiresByType image/webp "access plus 1 year"
  ExpiresByType image/svg+xml "access plus 1 year"
  ExpiresByType image/x-icon "access plus 1 year"

  # Video
  ExpiresByType video/mp4 "access plus 1 year"
  ExpiresByType video/mpeg "access plus 1 year"

  # CSS, JavaScript
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType application/javascript "access plus 1 month"

  # Others
  ExpiresByType application/pdf "access plus 1 month"
  ExpiresByType application/x-shockwave-flash "access plus 1 month"
</IfModule>

avoid bad request witch its telling you that you ether dont have your file in the right section of your host witch look for the solution

go here>>>>website test you will find where the issues are.

Serve scaled images

server scaled images  its because you might not have the right dimensions like an image might be 500 x 300 witch it would need to be corrected

use the link below to optimize your images it may be a pain to do but it will save you the time of having to ask someone how to improve images

how to do this the right way go to your cpanle and look for images and that will help you out  Optimize images

avoid http 404 nt found error

this means that you removed the image or file or you just have it in the rung place check your host to find it

 

Enable compression via .htaccess

some members have asked th question how to enable compress for this add

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

  add expires headers htaccess

some of you may have this issue so use the codes below to fix that

<IfModule mod_expires.c>
  ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
  ExpiresDefault                          "access plus 1 month"

# Data
  ExpiresByType text/xml                  "access plus 0 seconds"
  ExpiresByType application/xml           "access plus 0 seconds"
  ExpiresByType application/json          "access plus 0 seconds"

# Favicon (cannot be renamed)
  ExpiresByType image/x-icon              "access plus 1 week"

# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 1 month"
  ExpiresByType image/png                 "access plus 1 month"
  ExpiresByType image/jpeg                "access plus 1 month"
  ExpiresByType video/ogg                 "access plus 1 month"
  ExpiresByType audio/ogg                 "access plus 1 month"
  ExpiresByType video/mp4                 "access plus 1 month"
  ExpiresByType video/webm                "access plus 1 month"

# Webfonts
  ExpiresByType application/x-font-ttf    "access plus 1 month"
  ExpiresByType font/opentype             "access plus 1 month"
  ExpiresByType application/x-font-woff   "access plus 1 month"
  ExpiresByType image/svg+xml             "access plus 1 month"
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

# CSS and JavaScript
  ExpiresByType text/css                  "access plus 1 year"
  ExpiresByType application/javascript    "access plus 1 year"

</IfModule>

just do this and some of your issues will be less of a headache!

Share this post


Link to post
Share on other sites

Good point . What would be nginx equivalent rules ?

Share this post


Link to post
Share on other sites
2 minutes ago, lkrou said:

Good point . What would be nginx equivalent rules ?

i dont know with nginx but if you come across it add it here for other members who needs to config there server

  • Like 1

Share this post


Link to post
Share on other sites

This is a command for give a software site like chrome to tell:

"Store this item for 1 month, right chrome?"

And chrome said: "Oh yesh!"

 

But how bout user deleting the cache? 😕

And thx for a tips ❤️

 

  • Haha 1

Share this post


Link to post
Share on other sites
10 hours ago, Nao said:

This is a command for give a software site like chrome to tell:

"Store this item for 1 month, right chrome?"

And chrome said: "Oh yesh!"

 

But how bout user deleting the cache? 😕

And thx for a tips ❤️

 

LOL thats funny

Share this post


Link to post
Share on other sites
What do you think? Remember the human.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×