Your site has already faced the problem of going off the air by having reached the bandwidth limit monthly contracted service? For then, my month of January/2009 exceeded the 5GB limit that my plan has, with its more than 7000 unique visitors. Analyzing HTTP traffic from my site I realized that this limit was reached by simply html pages, js, css and not by large MP3 files or videos that many sites offer.
To solve this problem, researched ways to optimize HTTP traffic. Some tips can help decrease bandwidth consumption and maintain the rate of visits. The post Improving the load time of a website
explains in detail some actions that can be taken to optimize the band as external GZip compress files, add expiration date in the header and others that help to reduce the size of data transferred from the server to the client.
Here it BrunoCunha.com basically implemented functionality of the pages with GZip compression and caching Javascript files, CSS styles and images. I hope that gives a way. :)
Another tip is the site http://checkgzipcompression.com/ that tests whether a site is with compression feature enabled and YUI Compressor that compresses JS and CSS files by removing the spaces and line breaks. Very cool these sites.
That, I hope it helps those who need, as seems to have helped me. I will wait this month Feb/2009 pass to see if solves.
[Update | 27/02/2009 | Bruno Cunha]
And apparently, worked very well. The month of February is coming to an end, My site exceeded 8000 unique visitors and total bandwidth consumed so far is 49%. That's it. Implementing these tips, I managed to keep the amount of access to the website and save 50% Band!
Below the configuration file. Htaccess file that I used on my website:
1: GET POST>
2: order deny,allow
3: deny from all
4: allow from all
5: </Limit>
6: PUT DELETE>
7: order deny,allow
8: deny from all
9: </Limit>
10: None FileETag
11: <IfModule mod_deflate.c>
12: AddOutputFilterByType DEFLATE application/x-javascript
text/css text/js text/javascript text/html text/plain
text/xml text/php
13: <IfModule mod_setenvif.c>
14: # Netscape 4.x has some problems...
15: BrowserMatch ^Mozilla/4 gzip-only-text/html
16: # Netscape 4.06-4.08 have some more problems
17: BrowserMatch ^Mozilla/4\.0[678] no-gzip
18: # MSIE masquerades as Netscape, but it is fine
19: # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
20: # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
21: # the above regex won't work. You can use the following
22: # workaround to get the desired effect:
23: BrowserMatch \bMSI[It] !no-gzip !gzip-only-text/html
24: # Don't compress images
25: SetEnvIfNoCase REQUEST_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
26: </IfModule>
27: <IfModule mod_headers.c>
28: # Make sure proxies don't deliver the wrong content
29: Header append Vary User-Agent env=!dont-vary
30: </IfModule>
31: </IfModule>
32:
33: # Turn on Expires and set default to 0
34: ExpiresActive On
35: ExpiresDefault A0
36: # Set up caching on media files for 1 year (forever?)
37: <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|mp4|wmv|wav)$">
38: ExpiresDefault A29030400
39: Header append Cache-Control "public"
40: </FilesMatch>
41: # Set up caching on media files for 1 week
42: <FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
43: ExpiresDefault A604800
44: Header append Cache-Control "public"
45: </FilesMatch>
46: # Set up 4 Hour caching on commonly updated files
47: <FilesMatch "\.(xml|txt|html|js|css)$">
48: ExpiresDefault A14400
49: Header append Cache-Control "proxy-revalidate"
50: </FilesMatch>
51: # Force no caching for dynamic files
52: <FilesMatch "\.(php|cgi|pl|htm)$">
53: ExpiresActive Off
54: Header set Cache-Control "private, no-cache, no-store,
proxy-revalidate, -transform the"
55: Header set Pragma "no-cache"
56: </FilesMatch>
Bruno goes as ?
I would like to talk with you about support in my website.
I'm in wait.
Pingback: Bandwidth Limit Exceeded: Again! | BrunoCunha.com