vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - YSLOW 1.0.3 (Make Your Forum Faster) (https://vborg.vbsupport.ru/showthread.php?t=178286)

Deimos 05-13-2008 09:11 PM

Quote:

Originally Posted by Stubbed (Post 1518050)
I've personally used the htaccess rules, leaving out the modrewrite rule and redir.php.

Could you post a copy of the htaccess file coding you used?
Thanks :)

thefifthlord 05-13-2008 09:17 PM

Quote:

Originally Posted by Stubbed (Post 1518050)
I really like where the mod designer is coming from, sadly the execution is a bit flawed.

On a small forum, this will be fine, but on a large forum the extra load it would create by gzipping everything in real time would offset the original goal of the modification, as shown by several people already.

I've personally used the htaccess rules, leaving out the modrewrite rule and redir.php.


Please make sure you read the previous post before saying the exact same thing i did and also to Deimos use this:
Code:

# Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400Header append Cache-Control "public"# Set up caching on media files for 1 weekExpiresDefault A604800Header append Cache-Control "public, proxy-revalidate"# Set up 2 Hour caching on commonly updated filesExpiresDefault A7200Header append Cache-Control "private, proxy-revalidate, must-revalidate"# Force no caching for dynamic filesExpiresDefault A0Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"Header set Pragma "no-cache"
And yes it works on ALL VERSIONS OF VBULLETIN with no problem. However if you have an ajax based shoutbox you might incur some problems, just use the code i told demios to use above and get rid of the redir.php. Lastly it works with all versions of VBSEO

Deimos 05-13-2008 09:25 PM

Thanks Fifth :)
I assume it's working, no errors or anything, hehe.

KHALIK 05-13-2008 09:26 PM

Quote:

Originally Posted by thefifthlord (Post 1518771)
Please make sure you read the previous post before saying the exact same thing i did and also to Deimos use this:
Code:

# Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400Header append Cache-Control "public"# Set up caching on media files for 1 weekExpiresDefault A604800Header append Cache-Control "public, proxy-revalidate"# Set up 2 Hour caching on commonly updated filesExpiresDefault A7200Header append Cache-Control "private, proxy-revalidate, must-revalidate"# Force no caching for dynamic filesExpiresDefault A0Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"Header set Pragma "no-cache"


That code is in one line, does not seem normal for htaccess, can you re-post the code properly as I am also interested.


or where do I put it ?

KHALIK 05-13-2008 09:31 PM

Deimos,

can you tell me where to put Fifth code?

or can you post your copy of htaccess and redir.php please.

trackpads 05-14-2008 12:19 AM

Quote:

Originally Posted by Jack0919 (Post 1513825)
Obviously, I am not a good coder as you.

I made "such an hack" by my lack of technology. Since I put this mod on here, I update 2 times in 3 days to correct problem. And this is my first time that I try to talk to other pepole in my poor English.

However, I'm very sorry because this mod make some of the users bothering.

May be I should not put this mod on here utill it's matured. But all I think is share "such an hack".

I think you are doing great. At current speed we should see Vbulletin 4.0 sometime around 2010. So in the meantime please keep up the good work! :)

Stubbed 05-14-2008 02:31 AM

Quote:

Originally Posted by KHALIK (Post 1518783)
That code is in one line, does not seem normal for htaccess, can you re-post the code properly as I am also interested.

or where do I put it ?

This is a better example, put it in an .htaccess file in your forum root, or website root, is better if you can get it in your apache config however.

Code:

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
 
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
 
# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>
 
# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
 
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

http://www.askapache.com/htaccess/sp...e-control.html

Jack0919 05-14-2008 11:00 AM

Quote:

Originally Posted by Stubbed (Post 1518986)
This is a better example, put it in an .htaccess file in your forum root, or website root, is better if you can get it in your apache config however.

Code:

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
 
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
 
# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>
 
# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
 
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

http://www.askapache.com/htaccess/sp...e-control.html

Your code is much better than mine.

Do you mind if I take some of your code to my next version YSLOW?

ayaam 05-14-2008 02:12 PM

tried , thanks

PGAmerica 05-14-2008 06:33 PM

This crashes my 3.7.0 forums. In the ACP, the images do not display and most of the ACP options stop working. In the forums, the images do not display at all.


All times are GMT. The time now is 06:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01465 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete