Magento 2 system Requirement
It’s very important to choose the best server. If the particular server you picked is not functioning smoothly, you won't have good website speed. Before starting performance optimization in Magento 2, We suggest you use the best server.
Always use the dedicated server or VPS, do not pick a shared hosting option.
Check the Magento 2 system requirement before you purchase the server.
- Memory requirement: Memory should be 2 GB RAM or higher.
- Database: Use always the latest MySQL version.
- PHP: Use the always updated PHP version.
- Magento Version: Use the always latest Magento version.
- SSL: A valid security certificate is required for HTTPS. Self-signed SSL certificates are not supported.
- Mail server: Mail Transfer Agent (MTA) or an SMTP server
Note : If you want to check more about system requirement guidelines, then go to the magento official website. Click Here 👉Magento system requirements
- Varnish Cache
- Redis Page cache
Let's configure the Varnish cache.
Log in to the Magento Admin Panel.
Go to the Stores > Configuration > Advanced > System > Full Page Cache
Now, Open the “Caching Application” and select the “Varnish Cache (Recommended)”
Enter the TTL for public content.
You can check the Varnish Configuration as per the below screenshot and enter the given information about the Varnish configuration.
Some tips for improving in coding Full-page Cache Works.
1)Don’t use the attribute cacheable="false" in the layout XML block.
2)Always use production mode in live websites.
3) test whether or not your page is cached manually. You can put the store on developer mode and run the cache clean command. Inspect element and check the Network tab. Refresh the page.
GZIP Compression
Gzip is a method of compressing files for faster network transfers. You can check in GTmetrix regarding the GZip.
How Can we enable it?
<IfModule mod_deflate.c># Compress HTML, CSS, JavaScript, Text, XML and fontsAddOutputFilterByType DEFLATE application/javascriptAddOutputFilterByType DEFLATE application/rss+xmlAddOutputFilterByType DEFLATE application/vnd.ms-fontobjectAddOutputFilterByType DEFLATE application/x-fontAddOutputFilterByType DEFLATE application/x-font-opentypeAddOutputFilterByType DEFLATE application/x-font-otfAddOutputFilterByType DEFLATE application/x-font-truetypeAddOutputFilterByType DEFLATE application/x-font-ttfAddOutputFilterByType DEFLATE application/x-javascriptAddOutputFilterByType DEFLATE application/xhtml+xmlAddOutputFilterByType DEFLATE application/xmlAddOutputFilterByType DEFLATE font/opentypeAddOutputFilterByType DEFLATE font/otfAddOutputFilterByType DEFLATE font/ttfAddOutputFilterByType DEFLATE image/svg+xmlAddOutputFilterByType DEFLATE image/x-iconAddOutputFilterByType DEFLATE text/cssAddOutputFilterByType DEFLATE text/htmlAddOutputFilterByType DEFLATE text/javascriptAddOutputFilterByType DEFLATE text/plainAddOutputFilterByType DEFLATE text/xml# Remove browser bugs (only needed for really old browsers)BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4\.0[678] no-gzipBrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlHeader append Vary User-Agent</IfModule>
Comments
Post a Comment
Please do not enter any spam link in the comment box.