• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Decreasing load times again

Hey guys, I posted about this previously.
I am trying to decrease load times. I have gone through and shrunk many of the main site images and I have also made many of them progressive jpg. I believe I have a decent htaccess and I have pretty much come to a point where I cannot figure out how to speed up load times with out removing content. I know one issue is the sidebar and I have reduced title sizes, etc but the main slow downs I believe is the dam Twitter Feed and other social links.

One of the major issues with the site is that it is filled with Ytube videos and images. In the forums the YTube pulls slow things down a but but there is not much I can do about that.

Does anyone have any recommendations? I would be willing to donate a small amount even to get this time down and fix some of my failing grades.

WebPagetest Test Result - Asheville : musclemecca.com/forum.php - 06/04/14 06:19:58

Couple other things

# - What is up with the tapatalk js file?
# - I have triee storing the css as files but this always seems to mess up the theme a bit..I am not sure why
# - I know I need to go through and validate better which would help.

## - Is anyone using a cdn? Is this worthwhile? Google?

Thanks!
 
First let's confine the test parameters to the most reliable and consistent connection WPT has, Dulles Va. And let's use IE 10 as the test browser.

Results here.

Your tapatalk call:
HTML:
http://musclemecca.com/portable/tapatalkdetect.js
Kicks a 404 error, it is either missing, mis-named, or the call in the script is incorrect.

Scroll down to call number 106 here. WebPagetest Page Images - Dulles : musclemecca.com/forum.php - 06/04/14 16:54:40

The muscle man guy? That is 451kb of data all by itself, coming from a third party URL. I don't see it displaying, anywhere on your page but it IS downloading to browsers and adding to your KB load. If it's not on display, you should take it out of the script and if it does display, no matter how you "shrink" it to scale to small size in the script, the total size of it still loads. Do you really need this 1/2 megabyte image?

You're still not leveraging browser cache of static content, there's a thread here in the Optimization forum for that.

Here's your optimization checklist: WebPagetest Optimization Check Results - Dulles : musclemecca.com/forum.php - 06/04/14 16:54:40

CDNs - I've never found a good use for them and this is after using one for two years. I don't use one, Ozzy doesn't use one... If your site is optimized you don't need one. And if your site is not optimized, a CDN really does nothing for you.
 
First let's confine the test parameters to the most reliable and consistent connection WPT has, Dulles Va. And let's use IE 10 as the test browser.

Results here.

Your tapatalk call:
HTML:
http://musclemecca.com/portable/tapatalkdetect.js
Kicks a 404 error, it is either missing, mis-named, or the call in the script is incorrect.

Scroll down to call number 106 here. WebPagetest Page Images - Dulles : musclemecca.com/forum.php - 06/04/14 16:54:40

The muscle man guy? That is 451kb of data all by itself, coming from a third party URL. I don't see it displaying, anywhere on your page but it IS downloading to browsers and adding to your KB load. If it's not on display, you should take it out of the script and if it does display, no matter how you "shrink" it to scale to small size in the script, the total size of it still loads. Do you really need this 1/2 megabyte image?

You're still not leveraging browser cache of static content, there's a thread here in the Optimization forum for that.

Here's your optimization checklist: WebPagetest Optimization Check Results - Dulles : musclemecca.com/forum.php - 06/04/14 16:54:40

CDNs - I've never found a good use for them and this is after using one for two years. I don't use one, Ozzy doesn't use one... If your site is optimized you don't need one. And if your site is not optimized, a CDN really does nothing for you.

Thanks

Not sure about the Tapatalk.js file. The script is uploaded as it comes and is the latest version. I wonder if others get this as well using Tapatalk?

I am making some changes right now to increase caching of static content, etc..will retest in a few. I am also working on more images..

## What muscleguy thing are you talking about? Never mind--I see now

Thanks again, will test again in a few minutes after changes.
 
Last edited:
What do you guys have the max attachment sizes set too? I want to lower mine. If I lower this setting it will compress these images to a lower file size or will it block them from being uploaded?

I have also slowly been trying to take remote hosted images and put them onto my server. This is easy for ther attachments using a plug in but the signatures are all hosted elsewhere which can slow things down and cause broken images.
 
Your tapatalk call:
HTML:
http://musclemecca.com/portable/tapatalkdetect.js
Kicks a 404 error, it is either missing, mis-named, or the call in the script is incorrect.

Yes, you are right.

On the older versions of tapatalk he would have probably added this code on his headinclude template, which is no longer neeeded.

Code:
<script type="text/javascript" src="mobiquo/tapatalkdetect.js"> </script>

So, he should remove the code.
 
Yes, you are right.

On the older versions of tapatalk he would have probably added this code on his headinclude template, which is no longer neeeded.

Code:
<script type="text/javascript" src="mobiquo/tapatalkdetect.js"> </script>

So, he should remove the code.

Thanks, I did not even think of that! :yo:
 
I am also trying to figure out this

Leverage browser caching of static assets: 16/100

I have expiration set on those gifs and pngs using the htaccess from here. Also, these are supposed to be served from nginx. i just checked and gif and png are both added.. Why is it that this one type of image is the only type not caching?

Last thing.. Those remote images that are taking so much time are next to impossible to find. does anyone have a method I can use to search the forum to find where they are? they are either signatures or post attachments.

## I will do a database search

Thanks guys, and yeah..sorry I didnt post this in the Optimization thing. I forgot all about it.

BTW - I am to 4 a's now but still flunking first time and static cache..

##I did the database search for that exact url and it comes up with nothing. I wonder if that image has already been imported to the server. I am not sure why the url is showing though in the test..
 
Last edited:

Thanks but I already have that stuff all added to htaccess.

I have this for those:

PHP:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType text/css A2628000
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType video/asf A2628000
ExpiresByType video/avi A2628000
ExpiresByType image/bmp A2628000
ExpiresByType application/java A2628000
ExpiresByType video/divx A2628000
ExpiresByType application/msword A2628000
ExpiresByType application/x-msdownload A2628000
ExpiresByType image/gif A2628000
ExpiresByType application/x-gzip A2628000
ExpiresByType image/x-icon A2628000
ExpiresByType image/jpeg A2628000
ExpiresByType application/vnd.ms-access A2628000
ExpiresByType audio/midi A2628000
ExpiresByType video/quicktime A2628000
ExpiresByType audio/mpeg A2628000
ExpiresByType video/mp4 A2628000
ExpiresByType video/mpeg A2628000
ExpiresByType application/javascript A2628000
ExpiresByType application/x-javascript A2628000
ExpiresByType application/vnd.ms-project A2628000
ExpiresByType application/vnd.oasis.opendocument.database A2628000
ExpiresByType application/vnd.oasis.opendocument.chart A2628000
ExpiresByType application/vnd.oasis.opendocument.formula A2628000
ExpiresByType application/vnd.oasis.opendocument.graphics A2628000
ExpiresByType application/vnd.oasis.opendocument.presentation A2628000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000
ExpiresByType application/vnd.oasis.opendocument.text A2628000
ExpiresByType audio/ogg A2628000
ExpiresByType application/pdf A2628000
ExpiresByType image/png A2628000
ExpiresByType application/vnd.ms-powerpoint A2628000
ExpiresByType audio/x-realaudio A2628000
ExpiresByType application/x-shockwave-flash A2628000
ExpiresByType application/x-tar A2628000
ExpiresByType image/tiff A2628000
ExpiresByType audio/wav A2628000
ExpiresByType audio/wma A2628000
ExpiresByType application/vnd.ms-write A2628000
ExpiresByType application/vnd.ms-excel A2628000
ExpiresByType application/zip A2628000
</IfModule>
 
Last edited:
It is working partially. It just is not working for most of the theme images for some reason.

Here is my htaccess though I am still working on it right now. I will put the redirects below once finished..

PHP:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.musclemecca\.com$ [NC]
RewriteRule ^(.*)$ http://musclemecca.com/$1 [L,R=301]

#RedirectMatch 301 ^/content/(.*)$ http://musclemecca.com/content/$1

<IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{HTTPS} on
     RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>

# new static rulers
Redirect 301 /270/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /271/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /277/ http://musclemecca.com/forumdisplay.php/277-Legendary-Threads

Redirect 301 /f226/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f226/2012-amateur-olympia-guaratees-spot-2013-mr-o-220736/ http://musclemecca.com/showthread.php/220736-2012-Amateur-Olympia!-Guaratees-spot-at-the-2013-Mr-O-!!!!
Redirect 301 /f226/antoine-vaillant-updates-official-thread-219458/index11.html http://musclemecca.com/showthread.php/219458-Antoine-Vaillant-%28Updates%29-Official-Thread/page11
Redirect 301 /f226/antoine-vaillant-updates-official-thread-219458/index2.html http://musclemecca.com/showthread.php/219458-Antoine-Vaillant-(Updates)-Official-Thread
Redirect 301 /f226/arnold-schwarzenegger-training-recently-219595/ http://musclemecca.com/showthread.php/219595-Arnold-Schwarzenegger-Training-Recently!?highlight=arnold-schwarzenegger-training
Redirect 301 /f226/article-re-ronnie-coleman-updates-official-thread-220863/ http://musclemecca.com/content.php?r=186-Re-Ronnie-Coleman-(Updates)-Official-Thread
Redirect 301 /f226/article-re-ronnie-coleman-updates-official-thread-220863/ http://musclemecca.com/showthread.php/221015-Ronnie-Coleman-(Updates)-Official-Thread
Redirect 301 /f226/kai-greene-arnold-preview-184695/ http://musclemecca.com/showthread.php/184695-Kai-Greene-%28Arnold-Preview%29?highlight=kai-greene-arnold-preview
Redirect 301 /f226/mark-alvisi-dragon-training-series-episode-4-arms-workout-213074/ http://musclemecca.com/showthread.php/213074-Mark-Alvisi-Dragon-Training-Series-Episode-4-(Arms-Workout)
Redirect 301 /f226/new-md-october-2008-a-197679/ http://musclemecca.com/showthread.php/197679-NEW-MD-OCTOBER-2008
Redirect 301 /f226/ronnie-coleman-207389/ http://musclemecca.com/forumdisplay.php/307-Ronnie-Coleman
Redirect 301 /f265/ http://musclemecca.com/forumdisplay.php/265-Movies-Games-TV-and-Music
Redirect 301 /f265/toy-story-3-movie-trailer-213280/ http://musclemecca.com/showthread.php/213280-Toy-Story-3-movie-trailer
Redirect 301 /f267/ http://musclemecca.com/forumdisplay.php/267-The-2008-MEMBER-OF-THE-YEAR
Redirect 301 /f270/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f271/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f277/ http://musclemecca.com/forumdisplay.php/277-Legendary-Threads
Redirect 301 /f286/ http://musclemecca.com/forumdisplay.php/286-Androgenetx-com
Redirect 301 /f289/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f290/ http://musclemecca.com/forumdisplay.php/290-CEMproducts-com
Redirect 301 /f293/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f298/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f299/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f300/ http://musclemecca.com/forumdisplay.php/229-MuscleMecca-Feedback
Redirect 301 /f301/ http://musclemecca.com/forumdisplay.php/301-Diet-Nutrition-and-Enhancement-Forum
Redirect 301 /f302/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /f305/ http://musclemecca.com/forumdisplay.php/305-Bodybuilder-Pro-List
Redirect 301 /f306/ http://musclemecca.com/forumdisplay.php/306-Arnold-Schwarzenegger
Redirect 301 /f307/ http://musclemecca.com/forumdisplay.php/307-Ronnie-Coleman
Redirect 301 /f308/ http://musclemecca.com/forumdisplay.php/308-Phil-Heath
Redirect 301 /f321/ http://musclemecca.com/forumdisplay.php/321-John-Grimek
Redirect 301 /f322/ http://musclemecca.com/forumdisplay.php/322-Sergio-Oliva
Redirect 301 /f328/ http://musclemecca.com/forumdisplay.php/328-Shawn-Roden
Redirect 301 /f329/ http://musclemecca.com/forumdisplay.php/329-Lionel-Beyeke
Redirect 301 /f352/ http://musclemecca.com/forumdisplay.php/325-Bob-Paris

Redirect 301 /arnold-classic-298/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters
Redirect 301 /arnold-classic-298/ http://musclemecca.com/forumdisplay.php/306-Arnold-Schwarzenegger
Redirect 301 /bodybuilding-pictures-270/ http://musclemecca.com/albumall.php
Redirect 301 /bodybuilding-videos-231/ http://musclemecca.com/forumdisplay.php/340-Muscle-Video
Redirect 301 /forum/ http://musclemecca.com/forum.php
Redirect 301 /forum/index.php http://musclemecca.com/forum.php
Redirect 301 /mr-olympia-297/ http://musclemecca.com/forumdisplay.php/226-MuscleMecca-HeadQuarters

Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL! http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!
Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL!/page2 http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!/page2
Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL!/page3 http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!/page3
Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL!/page4 http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!/page4
Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL!/page5 http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!/page5
Redirect 301 /showthread.php/234271-2014-Arnold-Classic-BRAZIL!/page6 http://musclemecca.com/showthread.php/234271-2014-Arnold-Classic-BRAZIL-Steve-Kuclo-wins!!!/page6


## Tags
RedirectMatch 301 ^/tags/([A-Za-z0-9-]+)/$ http://musclemecca.com/tags.php?tag=$1

## Members
RedirectMatch 301 ^/members/(.*)$ http://musclemecca.com/member.php/$1

##Treads
RedirectMatch 301 ^/f([0-9]+)/([A-Za-z0-9-]+)-([0-9-]+)/index([0-9-]+)\.html$ http://musclemecca.com/showthread.php/$3-$2/page$4
RedirectMatch 301 ^/f([0-9]+)/([A-Za-z0-9-]+)-([0-9-]+)/$ http://musclemecca.com/showthread.php/$3-$2

RedirectMatch 301 ^/([0-9-]+)-post([0-9-]+)\.html$ http://musclemecca.com/showthread.php?p=$1
RedirectMatch 301 ^/threads/(.*)$ http://musclemecca.com/showthread.php/$1

##SiteMap
RedirectMatch 301 ^/sitemap/f-([a-z0-9-]+)\.html$ http://musclemecca.com/archive/index.php/f-$1.html

RedirectMatch 301 ^/([A-Za-z0-9-]+)-([0-9-]+)/([A-Za-z0-9-_]+)-([0-9-]+)/index([0-9-]+)\.html$ http://musclemecca.com/showthread.php/$4-$3/page$5
RedirectMatch 301 ^/([A-Za-z0-9-]+)-([0-9-]+)/([A-Za-z0-9-_]+)-([0-9-]+)/index([0-9-]+)$ http://musclemecca.com/showthread.php/$4-$3/page$5
RedirectMatch 301 ^/([A-Za-z0-9-]+)-([0-9-]+)/([A-Za-z0-9-_]+)-([0-9-]+)/(.*)$ http://musclemecca.com/showthread.php/$4-$3
RedirectMatch 301 ^/([A-Za-z0-9-]+)-([0-9-]+)/([A-Za-z0-9-_]+)-([0-9-]+)/$ http://musclemecca.com/showthread.php/$4-$3

## Forums
RedirectMatch 301 ^/([A-Za-z0-9-]+)-([0-9-]+)/$ http://musclemecca.com/forumdisplay.php/$2-$1

## Rewrites
<ifmodule mod_rewrite.c>
        RewriteEngine on
        Options +FollowSymlinks

        RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]

        # Media Library
        ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
        ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
        ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
        ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
        ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
        ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
        ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
        ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
        ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
        ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
        ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
        ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
        ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
        ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
        ReWriteRule ^media/browse.* media.php?do=browse [QSA]
        ReWriteRule ^media/search.* media.php?do=search [QSA]
        ReWriteRule ^media/random.* media.php?do=random [QSA]
        ReWriteRule ^media/submit.* media.php?do=submit [QSA]
        ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
        ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
        ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
        ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
        ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
        ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
        ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
        ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
        ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
        ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

        # Media Library from Video Directory
        RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
        RewriteRule ^video\.php$ media.php?do=details&mid=%1
        RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
        RewriteRule ^video\.php$ media.php?do=category&cid=%1
        RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
        RewriteRule ^video\.php$ media.php?do=user&uid=%1
        RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
        RewriteRule ^video\.php$ media.php?do=tag&tid=%1
        ReWriteRule ^video\.php$ media.php

</ifmodule>

<IfModule mod_headers.c>
        <FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">
                Header set Last-Modified "Mon, 15 Feb 2013 00:00:00 GMT"
        </FilesMatch>
</IfModule>

# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType application/javascript .js
AddType application/x-javascript .js
AddType text/html .html .htm
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType text/xml .xml
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
# END W3TC Browser Cache

# START E-Tag
<ifModule mod_headers.c>
Header unset ETag
</ifModule>
FileETag None
# END E-Tag

# START Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# END Deny attempts to view the Htaccess file.

# Start Deny attempts to view the config file.
<Files includes/config.php> 
Order allow,deny
Deny from all
</Files>  
# End Deny attempts to view the config file.

# START Mime-Type
<IfModule mod_mime.c>
AddType text/css .css
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
# END Mime-Type

# START Expires Headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType text/css A2628000
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType video/asf A2628000
ExpiresByType video/avi A2628000
ExpiresByType image/bmp A2628000
ExpiresByType application/java A2628000
ExpiresByType video/divx A2628000
ExpiresByType application/msword A2628000
ExpiresByType application/x-msdownload A2628000
ExpiresByType image/gif A2628000
ExpiresByType application/x-gzip A2628000
ExpiresByType image/x-icon A2628000
ExpiresByType image/jpeg A2628000
ExpiresByType application/vnd.ms-access A2628000
ExpiresByType audio/midi A2628000
ExpiresByType video/quicktime A2628000
ExpiresByType audio/mpeg A2628000
ExpiresByType video/mp4 A2628000
ExpiresByType video/mpeg A2628000
ExpiresByType application/javascript A2628000
ExpiresByType application/x-javascript A2628000
ExpiresByType application/vnd.ms-project A2628000
ExpiresByType application/vnd.oasis.opendocument.database A2628000
ExpiresByType application/vnd.oasis.opendocument.chart A2628000
ExpiresByType application/vnd.oasis.opendocument.formula A2628000
ExpiresByType application/vnd.oasis.opendocument.graphics A2628000
ExpiresByType application/vnd.oasis.opendocument.presentation A2628000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000
ExpiresByType application/vnd.oasis.opendocument.text A2628000
ExpiresByType audio/ogg A2628000
ExpiresByType application/pdf A2628000
ExpiresByType image/png A2628000
ExpiresByType application/vnd.ms-powerpoint A2628000
ExpiresByType audio/x-realaudio A2628000
ExpiresByType application/x-shockwave-flash A2628000
ExpiresByType application/x-tar A2628000
ExpiresByType image/tiff A2628000
ExpiresByType audio/wav A2628000
ExpiresByType audio/wma A2628000
ExpiresByType application/vnd.ms-write A2628000
ExpiresByType application/vnd.ms-excel A2628000
ExpiresByType application/zip A2628000
</IfModule>
# END Expires Headers

# BEGIN Compress text files
<ifModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
  AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
  AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
  AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
  AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
  AddOutputFilterByType DEFLATE font/truetype font/opentype
  
# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</ifModule>
# END Compress text files 

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "max-age=29030400, public"
  </filesMatch>
  <filesMatch "\.(css)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(js)$">
    Header set Cache-Control "private"
  </filesMatch>
  <filesMatch "\.(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
  </filesMatch>
</ifModule>
# END Cache-Control Headers

# Block User-agent Libwww-perl
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
RewriteRule .* – [F,L]

# proc/self/environ? no way!
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})

# Measures to block out SQL injection attacks
RewriteCond %{QUERY_STRING} ^.*(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR]


ErrorDocument 400 /pages.php?pageid=8
ErrorDocument 401 /pages.php?pageid=8
ErrorDocument 403 /pages.php?pageid=8
ErrorDocument 404 /pages.php?pageid=8
ErrorDocument 500 /pages.php?pageid=8
 
16 out of 100 is partially, I agree.:smile:

lol

Very partially... Still I knocked 2 seconds off load times today and have 4 A grades now so that is a giant improvement. I am still unable to find that large remotely hosted image though. I searched the database so I just do not get it.
 
lol

Very partially... Still I knocked 2 seconds off load times today and have 4 A grades now so that is a giant improvement. I am still unable to find that large remotely hosted image though. I searched the database so I just do not get it.
Yes sometimes it doesn't take much to get alot!

The URL we see in the test might be a result of a redirect - so that you can't really find what's calling it, in your scripts.

Try running the test with all hooks off, and with vB default style forced. See if this big image is there.
 
Thanks,

That image was definitely posted in an article or post.

The problem we have is that there are many thousands of images that are remote hosted and the import script is not able to import some of them. I have been tackling a bunch every day for the last few weeks but it will take years to get them all. That one though seemed excessively large.

Also, what happens at times is that some of the images that are hosted on image hosting sites do get imported automatically but the url stays. That could be the case here but it should be findable by searching the forum.

I am thinking that perhaps my search index needs to be rebuilt and that is where that image was found. It could have been in the search index still but removed.

Ah well, always a work in a progress I guess.
 
Thanks,

That image was definitely posted in an article or post.

The problem we have is that there are many thousands of images that are remote hosted and the import script is not able to import some of them. I have been tackling a bunch every day for the last few weeks but it will take years to get them all. That one though seemed excessively large.

Also, what happens at times is that some of the images that are hosted on image hosting sites do get imported automatically but the url stays. That could be the case here but it should be findable by searching the forum.

I am thinking that perhaps my search index needs to be rebuilt and that is where that image was found. It could have been in the search index still but removed.

Ah well, always a work in a progress I guess.
I would consider then, if I really want the images related to the posts, appearing on the page for visitors. Since you have little control of what hotlinked images people are posting, it seems prudent to keep them off the main page as much as possible. I suggest thinking about a vb:if conditional on these, so that they only load for members logged in.

And besides - the image was loading on browsers but not displaying on the page anyway. Clearly it had no benefit to you at all.
 
I would suggest compressing the static images first before anything else. Then combine them in a sprite to speed up the page load.

your images are too big in size to load a page so I think I would start from there if I were you!!
 
Hey guys, it has been awhile since I have been here. Hope everyone is fine.

I was planning on spending a little more time on this soon and had some questions for you guys.

#1 - Is there any way to cache or optimize videos bring embedded from youtube?

#2 - Is it it possible to have attachments/images reduced or optimized on the fly? I am not just talking dimensions but file size.

#3 - My members really like the images being full sized as the entire site really revolves around images. Is there any way I could show thumbnails just to guests and let members see the full size images? This would get first time page loads way down I bet.


Lastly, how much would you guys charge me to do some tweaks to get things loading faster without removing features and impacting content? keep in mind I have already done much of the caching and other tweaks.

Thanks bros!
 
I know. I am like a broken record. lol

Anyone care to help me with this for cash?

The static site images or most of them are not too bad. it is the attachments that kill us and the embedded youtube videos.
 
Back
Top