I am posting here as for quite some time CDN functions ware totally neglected by VB5 staff.
yeah it was there but it sucked / sux ... and it still do
but i am talking back in 2013 when we started with vb5...
CDN support back then was there ... BUT it was.....
ammmmmmmmm.....anyway...
now up to this date (nov 2016) things have improved ..
but still even if you set your CDN URL
+ export all css and js not to be in the database but stored in actuall files
then you will run in to this really f*ed up thing that still i cant get my head the way the vb staff responded...
if you look in to
so in simple words if you dont edit your .htaccess
and set Header set Cache-Control
from private to public
You will end up like this then:
X-CACHE:MISS and you are Fu*ked
the CDN wont cache the CSS and JS
in the end by using a CDN your VB will load slower because the CDN have to get that non cached file and then server it to you..
VB5 staff?? why??
there is a reason that vb official forums load slow AF.
they dont even use CDN.. any at all...
a company like VB should be able to afford akamai .. or any other high end cdn provider dont you think?
___________________________________
Sooooooooo in case you use CDN
edit your .htaccess
FROM
TO
TA DAAAAAAAAAAAAAAAA
yeah it was there but it sucked / sux ... and it still do
but i am talking back in 2013 when we started with vb5...
CDN support back then was there ... BUT it was.....
ammmmmmmmm.....anyway...
now up to this date (nov 2016) things have improved ..
but still even if you set your CDN URL
+ export all css and js not to be in the database but stored in actuall files
then you will run in to this really f*ed up thing that still i cant get my head the way the vb staff responded...
if you look in to
Kevin Sours added a comment - 30/Jan/14 02:14 PM
Should supply an alternate the htaccess optimized for the CDN
Should supply an alternate the htaccess optimized for the CDN
and set Header set Cache-Control
from private to public
You will end up like this then:
X-CACHE:MISS and you are Fu*ked
the CDN wont cache the CSS and JS
in the end by using a CDN your VB will load slower because the CDN have to get that non cached file and then server it to you..
VB5 staff?? why??
there is a reason that vb official forums load slow AF.
they dont even use CDN.. any at all...
a company like VB should be able to afford akamai .. or any other high end cdn provider dont you think?
___________________________________
Sooooooooo in case you use CDN
edit your .htaccess
FROM
Code:
<filesmatch "\.([B]css[/B])$"> Header set Cache-Control "max-age=31536000, [B]private[/B]" </filesmatch> <filesmatch "\.([B]js[/B])$"> Header set Cache-Control "max-age=1209600, [B]private[/B]" </filesmatch>
TO
Code:
<IfModule mod_headers.c> Header set Connection keep-alive <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$"> Header set Cache-Control "max-age=2592000, public" </filesmatch> <filesmatch "\.(jpg|jpeg|png)$"> Header set Cache-Control "max-age=1209600, public" </filesmatch> <filesmatch "\.(eot|woff|otf|ttf|svg)$"> Header set Cache-Control "max-age=2592000, public" </filesmatch> # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching <filesmatch "\.([B]css[/B])$"> Header set Cache-Control "max-age=31536000, [B]public[/B]" </filesmatch> <filesmatch "\.([B]js[/B])$"> Header set Cache-Control "max-age=1209600, [B]public[/B]" </filesmatch> </IfModule>
TA DAAAAAAAAAAAAAAAA
Comment