Cloud flare and yetishare

iguanashare4743

New Member
YetiShare User
Feb 7, 2015
125
0
0
Just want to ask if is it good idea to run cloud flare with yetishare , does it have any effect specially on external servers ? or is it good to use ?
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
It's fine 99% of the time, our demo sites are running with it. I've seen there be issues with Cloudflare in rare cases with the upload speed. Some YS users have said it goes slower and disabling CloudFlare fixes it. I've not seen it myself but that's the only thing to be aware of.
 

gabrieldiazbernal4711

New Member
YetiShare User
Feb 3, 2015
48
0
0
adam said:
It's fine 99% of the time, our demo sites are running with it. I've seen there be issues with Cloudflare in rare cases with the upload speed. Some YS users have said it goes slower and disabling CloudFlare fixes it. I've not seen it myself but that's the only thing to be aware of.
I have one problem, Wich cloudFlare, remote upload not working :(
 

iguanashare4743

New Member
YetiShare User
Feb 7, 2015
125
0
0
gabrieldiazbernal4711 said:
adam said:
It's fine 99% of the time, our demo sites are running with it. I've seen there be issues with Cloudflare in rare cases with the upload speed. Some YS users have said it goes slower and disabling CloudFlare fixes it. I've not seen it myself but that's the only thing to be aware of.
I have one problem, Wich cloudFlare, remote upload not working :(
I guess there is an option to allow connection remotely , try to google about it of i anyone here can help
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
just setup cloud flare, upload speed is the same and remote upload works, i really like how fast the site loads now

point to note, i'm using local storage, havent tested on any external storage
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
thats strange now remote upload wont work for me either on cloudflare
.
.
.
.
i downgraded my php version and now it works again, seems the remote upload doesnt work for me on 5.6.

whats the recommended php version for ys anyway
 

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
there is an issue with cloudflare where when people upload files, it does not give a url link, its blank

something to do with

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 503.

I enabled cloudflare

I can upload file

but when other users upload, they get the problem i described, i.e one guy says

" I cannot upload a video that I need to send a prospective employer by tomorrow. I have tried multiple times and though I can browse my documents and select the file, it never uploads once I click on upload queue. Instead it just says that it's 100% uploaded already and there is no file or link given."

so he cant upload to a file server that is behind cloudflare, but i can. i turn off cloudflare, and then he can upload

So ridiculous

SO i guess i am going to try

<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "*"
</IfModule>

in htaccess

the whole thing is depressing
 

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
heres the error

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://server1.domain.com/core/page/ajax/file_upload_handler.ajax.php?r=domain.com&p=https&csaKey1=(key)afbf9&csaKey2=(key). (Reason: CORS header 'Access-Control-Allow-Origin' missing).

So i guess i need to do that header access control thing i posted, or is it somethuingi else ? let me know
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
ive given up on cloud flare, my website would randomly be offline for a minute or so in the last few hours, this isnt going to impress uploaders/downloaders

what sucks is the my main page is about 1.4mb to load fully, i'm not sure if thats the ys script or all the mods ive done, hopefully 4.3 is a bit lighter

also i noticed the whole sites headers call no-cache etc... is there a reason for that, and is ys gzip friendly,

i used to have this in my htaccess

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

but removed it later on because i'm not sure if there was any negative effects, i may re-add it again and test, it definitely speeds up page loading
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
enabling gzip sped up my page load from 7.54s to less than 2 according to http://tools.pingdom.com/
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
paypal1352 said:
ive given up on cloud flare, my website would randomly be offline for a minute or so in the last few hours, this isnt going to impress uploaders/downloaders

what sucks is the my main page is about 1.4mb to load fully, i'm not sure if thats the ys script or all the mods ive done, hopefully 4.3 is a bit lighter

also i noticed the whole sites headers call no-cache etc... is there a reason for that, and is ys gzip friendly,

i used to have this in my htaccess

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

but removed it later on because i'm not sure if there was any negative effects, i may re-add it again and test, it definitely speeds up page loading
There is a module on nginx that makes nginx look first for a .gz file. You can keep a compressed copy of all js and css on your website. Using the deflate from apache will make apache compress every file over and over again in every request.

I also merged all css and js in one file to reduce the number of requests. The 1mb of javascript is reduced to 250kb.