Dev {Tricks}

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting
You are here: Home / Archives for Wordpress / Speed and Security

July 24, 2019 by dev Leave a Comment

How to Leverage Browser Caching for Images, CSS and JS in .htaccess

Leverage browser caching specify how long web browsers should keep images, CSS and JS stored locally. Add the following lines to the .htaccess file.

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

 

Filed Under: Speed and Security Tagged With: Leverage Browser Caching

July 24, 2019 by dev Leave a Comment

Fix “Specify a Vary: Accept-Encoding Header” Warning in Apache Server

Add the following lines to your WordPress .htaccess

<IfModule mod_headers.c>
  <FilesMatch ".(js|css|xml|gz|html)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
</IfModule>

 

Filed Under: Speed and Security Tagged With: Accept-Encoding Header, apache error, apache warning, encoding header, specify a vary, Specify a Vary: Accept-Encoding Header

July 18, 2019 by dev Leave a Comment

WordPress Speedup

How to speedup your slow WordPress website?

  1. Take a speed test of the website. There are several tools to test website speed.
    • Pingdom Website Speed Test at in https://tools.pingdom.com
    • PageSpeed Insights https://developers.google.com/speed/pagespeed/insights/
  2. Performance Insights report and solution (pingdom).
    • Specify a vary accept-encoding header. [.htaccess]
    • Leverage browser caching. [.htaccess]

 

Filed Under: Speed and Security, Wordpress Tagged With: fast load, fast website, how to increase wordpress speed, slow website, speedup wp

March 14, 2018 by dev Leave a Comment

Speed up WordPress Website | Decrease Loading Time | Increase Website Performance

All of these methods can be and should be used together !
————O————

 #1.  Check  WordPress performance with the following tools

              •  Web performance tools at Google
              •  GTmetrix website performance test
              •   Pingdom Website speed test

 #2.  Compress Images

              •   Compress images to web quality
              •   You can use following plugins to compress all the images and future uploads
=   EWWW Image Optimizer
                   =   WP-Smush – Image Optimization

 #3.  Utilize Caching

              •   A Cache is something that stores data on the viewer’s machine, so future requests for that data can be served faster.
              •   On WordPress, a caching plugin with store your posts and pages as static files so that your server doesn’t need to think every time it serves a page
              •   You can use following caching plugins.
              •   W3 Total Cache
              •   WP Super Cache
              •   WP Rocket ( premium )
              •   WP Fastest Cache
              •   Hyper Cache

 #4.  GZip Compression

              •   This is when your server sends your data in a compressed form to your viewer’s browser
              •   You can use the plugin GZip
              •   Alternatively, most caching plugins such as W3 Total Cache also offer this

 #5.  Optimize Permalinks

              •   Instead of using permalinks like
                      /%category%/%postname&/
                      “http;//dev.bdhostit.com/contact”
              •   Use a numerical field such as
                      /%year%/%monthnum%/%postname%/
                      “http://dev.bdhostit.com/2018/3/earn-money”

 #6.  Use a content delivery network (CDN)

              •   A CDN uses several servers around the world to better serve data to your viewer’s dependant on their location
              •   Cached files are then served from these super-fast servers to your viewers to reduce server strain and increase page speed dramatically
              •   This is very easy to incorporate when using servers such as CloudFlare or CDN
              •   W3 Total Cache also has a function to incorporate a CDN easily 

 #7.  Minify and Combine CSS and Javascript

              •   Minification of CSS and Javascript is almost like compression. You will remove redundant data such as link beaks and comments and serve a smaller more efficient file
              •   Combining your CSS files and JS files will also reduce the amount of connections a person’s browser is required to make
              •   W3 Total Cache providing this service. CloudFlare CDN also offers the ability to combine both internal and external files too.

 #8.  Remove Unused Plugins

              •   The more plugins that you have, the more strain that your server will undergo when your blog is viewed
              •   Regularly go through and make sure that any plugins that you aren’t using are deactivated
              •   If you do plan to use them again, Then delete theme too

 #9.  Reduce Advertisements

              •   Image-based and flash-based advertisements can put tremendous strain on load time
              •   Keep these to a minimum
              •   While Google AdSense is served from fast servers, make sure that your ads are loaded Asynchronously use Lazy Loading

 #10.  Lazy loading

              •   This delays loading of images on your page.
              •   Images outside of your browsers viewport will not be loaded until a user scrolls to theme
              •   Plugins a3 Lazy Load  offers support for lazy loading HTML5, Flash, and Video Streaming services.
              •   Also  BJ Lazy Load .

 #11.  Reduce Blog Posts Shown

              •   Instead of forcing your visitor to load 10+ posts on your homepage you should this amount to a more viable amount
              •   Most themes use thumbnails on your homepage so you should try to serve as few images as possible
              •   Aim to keep to less than 10 on your homepage

 #13.  Reduce Blog Posts Shown

              •   Instead of forcing your visitor to load 10+ posts on your homepage you should this amount to a more viable amount
              •   Most themes use thumbnails on your homepage so you should try to serve as few images as possible
              •   Aim to keep to less than 10 on your homepage

 #14.  Optimize Your Database

              •   You should delete any lingering spam, old, plugin debris, post data from your database
              •   Leaving this data can lead to unnecessary passes when your server is browsing through your database to find a specific piece of data
              •   You can use WP Database Optimizer for this task
              •   You can use also WP-Optimize for this task

Filed Under: Speed and Security

  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • To get your email for castamodel.com going to the right place, you need to update your DNS settings.
  • Security and WordPress
  • ROR
  • How do we copy google form to google workspace?
  • Install ImageMagick – Almalinux
  • How to remove /public/ from URL in Laravel
  • How to install Maldet alert?
  • How to Install Maldet and Run a Scan | Maldetect
  • Where is Roundcube location on CWP control panel?
  • How To Add Node.js Projects In aaPanel?
  • SPF/DKIM/DMARC Tools
  • Associative arrays – How to loop over Associative arrays
  • Indexed Arrays. How to loop over Indexed Arrays.
  • PHP Break | Continue
  • For Loop | While Loop | Do…While Loop | Foreach Loop
  • Strict mode in PHP
  • PHP Function Return Types
  • PHP Anonymous Functions (or Closures)
  • PHP Variadic Functions
  • PHP nullable type hints

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)

Important DEV links

  • Premium Themes
    • Themeforest
    • Envato Market
  • Built With (What Theme is That?)
    • What WP theme is that
    • Joomla Template Detector
    • Drupal Template Detector
    • Prestashop Template Detector
    • Shopify Theme Detector
    • Squarespace Template Detector
    • OpenCart Detector
    • WordPress.com Theme Detector
  • Domain/IP history checker
    • Who IS request
    • Hosting Info
  • Check DNS Propagation
    • DNS Checker
    • intoDNS
  • What is my IP
    • What is My IP Address
    • What is My IP
    • IP location
    • What is My IP
    • Porkbun
  • SEO Tools
    • Visitor Traffic
    • Broken Link
    • Website Speed Test
      • SEMrush
      • GTmetrix
      • Pingdom
      • PageSpeed Insights
      • DebugBear
      • keyCDN
  • Photo Image
    • Remove Background 50 Free Preview Image 375 × 666 per month
  • Domain Registrars
    • 123-Reg
    • Porkbun
    • Freenom
    • Namecheap NEWCOM598
  • Hosting Providers
    • Bluehost
    • Hostgator
    • Inmotion
  • Hosting Control Panel
    • CWPpro (FREE)
    • DirectAdmin (Trial 60 Days, One account $2/month)
    • ISPConfig (Free)
  • Webmaster Tools
    • Google
    • Bing
    • Yandex
  • Miscellaneous
    • Time Calculator

 

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

Copyright © 2025 · Executive Pro Theme on Genesis Framework · WordPress · Log in