The same file with a volume

Targeted phone number list here talk
Post Reply
Wade
Posts: 56
Joined: Sat Feb 24, 2024 3:34 am

The same file with a volume

Post by Wade »

This method of distributing files is called CDN or Content Delivery Network. For example, the Google site has almost all the required files from Gstatic. com, Yahoo (yimage. com), Facebook (fbcdn. com) and . . . This separate domain generally has several subdomains to increase the ability to distribute files to different domains. Using a domain without cookies When you set up a CDN, the most important thing for those domains is that you do not define any cookies in all of them. The cookie adds a small amount of size to each of those files that is not necessary in principle and just wastes the CDN's bandwidth in the long run. Specify Expire and Cache-Control .


When your web server responds to a request, it puts a series of information on the header of the page, one of which is specifying the status of Expiration and Cache of the contents of that page. To increase the Russia Phone Number Data speed of the site, you can cache many page contents that do not change in the time you need. One way to do this is to use mod_expires in Apache: ExpiresActive On ExpiresDefault A604800 ExpiresByType image/x-icon A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType text/css A1209600 ExpiresByType application/x-javascript A1209600 . GZip content Almost all modern browsers have the ability to receive zipped content from the web server, unzip it internally, and then display it to the user.

Image

The peculiarity of using this work is that instead of, for example, a 100 KB file being downloaded, of, for example, 30 KB is downloaded, which is faster and consumes less bandwidth from the server. You can use Apache's mod_deflate for this: SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\. 0!gzip-only-text/html Header append Vary User-Agent Minify files When you are preparing the website in the Develop environment: There is nothing wrong with it, but when you plan to upload the site, it is better to delete all these extra spaces and tabs and upload it like this: <body> <div> <div>Something</div> </div> </body> For a website, code readability is not as important in a Production environment as it is in a Develop environment, and you should consider minifying all files, especially CSS and Javascript.
Post Reply