Edit: In case you're still reading this, if you use webpack (or the like), some will come with cache busting built in. Just thought I'd add that little tidbit
The reason you would generally use nginx as a reverse proxy is balancing your server load (distributing requests across all your server instances). Increased security (you can easily set up nginx to serve certificates as discussed in the article you linked, as well as nginx handles certain types of ddos attacks better than other web servers). And of course you get all the logs centralized in one place.
​
You can read more about the topic Here
HTTPS has benefits for static content-only websites, even beyond "people say you should" and related reasons (e.g. higher search ranking, "Not secure" badge in browsers, ...).
And on top of that, there's very little (as in <em>very</em> little) overhead when it comes to HTTPS vs HTTP.
It's pretty much just a matter of there being no real downsides, along with massive benefits for most sites and huge privacy-related benefits for every site.
Their open source site is still up, and their status page aren't reporting any problems - which specific libraries aren't loading for you?
You need to increase the web server max post size. For nginx it's something like https://www.keycdn.com/support/413-request-entity-too-large
Of course, in your case you need to find the proper config in your cpanel or ask the support to help you
I don't mean resize, I mean compress. It's the same pixel dimensions, but takes up fewer kilobytes https://www.keycdn.com/support/what-is-image-compression
This payment page?
https://www.keycdn.com/support/buy-credits
> You are not required to add a payment each month when using KeyCDN. Your credits will roll over to the next month and only expire after 1 year.
Their policy is clearly explained. If you missed it, that's on you.
I know if I was buying "credits" for something I'd be sure to answer these questions before handing out money.
Actually, most analysis I've seen on the subject suggests that HTTPS has very little performance impact. I can't find it right now, but I'm pretty sure Google and Cloudflare have both published very similar findings, and most consider the resource overhead a non-issue at this point. I suppose I don't know much about licensing, but there doesn't seem to be a performance reason they can't make the switch.
You claim that HTTP is faster and transmits less data, and while this is true the difference is almost negligible. The CPU increase on the server is about 2% (according to the same article), which is also not such a huge difference as to decide against HTTPS altogether.
Also, on the bottom of: https://www.keycdn.com/support/buy-credits
> Note: You are not required to add a payment each month when using KeyCDN. Your credits will roll over to the next month and only expire after 1 year. You have the option of adding a payment manually whenever you want or can enable the automated payment option.
This will say it better than I could https://www.keycdn.com/blog/http-to-https/
I wasn't saying that you should leave your http pages with a rel="canonical" of http. When you enact the .htaccess redirect, you won't have http pages. Those will no longer be crawled because anytime a user or user-agent attempts to acces the http version, it will resolve to https.
I did forget to mention that any hard coded absolute URLs on your site will need to be updated, otherwise you'll have a ton of redirecting links within your site.
It wasn't a mistake to delete the http sitemap, I think you were right about what you did, and why you did it.
> We are looking into a temporary solution right now. One which would cache API results, and if a call is made within 1 second of the last time the call was made and cached, it would just return the cached result. For example, /api/v1/foobar is called at 15:00:00.000. It finishes the call and caches the result at 15:00:00.200.
Set the HTTP freshness headers on the server response correctly and your problem is solved. If your client has an issue that is causing it to make requests 100s of times a second a 1 second TTL in the response will have enormous impact.
If your backend IS sending correct freshness headers (test with REDBot ) your client may be written to explicitly ignore them (this is unlikely, but possible). Look at the cache policies being set on the NSURLRequest
s and NSURLSession
s in your client. The default behavior is what you want, if your app is explicitly changing that behavior find out why and change it.
They are different though, CloudFlare is proxy based CDN and MaxCDN is a content CDN. You can use MaxCDN to deliver your content and everything else from CloudFlare. W3TC make this easier.
Edit:
If you want to try a CDN services that similar to MaxCDN then try KeyCDN: https://www.keycdn.com/eng
They offer 25Gb free for one year. I haven't tried them yet though.
I see that you're getting a lot of ERR_BLOCKED_BY_CLIENTs. Some articles suggest that turning off an ad blocker (if you have one) may help with this problem:
https://github.com/tomchentw/react-google-maps/issues/222
https://www.keycdn.com/support/how-to-solve-err-blocked-by-client
Try CacheEnabler.. Simple configuration. It just outputs static html files and serves it directly. See Advanced Configuration (not really advanced.. it's just some lines you need to add to .htaccess)
Another suggestion: Link your website with CloudFlare. CloudFlare provides free SSL certificate. The caching options can improve your page load times remarkably. 3 Page rules for Free plan. extra rule available @ $5/mo.
> Also, if you disable autoplay for videos and gifs, you'd have to visist around 3,000 web pages to reach a gig.
Less than 500 pages at over 2.3MB (let's say 2MB to be exclude occasional videos and gifs). That's 16 page loads a day if you're careful.
Ad blockers are our friends though. They take half of the size. Source.
Anyway, a gig is not much for browsing nowadays.
Unless we are talking large-scale pages, I generally advise against geo-replication - it's not worth it for smaller to medium sites.
But what I would do is find a nice CDN provider (such as KeyCDN, MaxCDN or cdn.net). CDN (Content Delivery Network) will accelerate the delivery of static assets (images, stylesheets, scripts...), which is going to provide a huge performance boost to visitors all over the world.
https://www.keycdn.com/what-is-a-cdn
//EDIT: Also regarding VPS locations, pick one that most of your visitors are from. For example if the majority of your visitors/customers are from US, get a US-hosted server. If you focus on Europe, then get a server in Germany, France or other similar location etc...
I would really just suggest finding an existing CDN and using them as it is quite a lot of work to run your own CDN. There are several that are inexpensive (I use keycdn personally) and many allow you to push files to the CDN for distribution among their servers.
If you really wanted to setup your own basic CDN:
All of those will cost time and/or money in some way and will likely be a pain to manage/sync. All to save what will end up being seconds (at most) off a download. It is one of those things that people don't really do for themselves. It is a pain to setup/manage and costs add up quickly. But once you do set it up, adding more data (like customers) to your service doesn't add much to the cost. Which is why it is possible for a company to make money even with all the headache.
Here are 8 good tips for improving your website's speed: https://www.keycdn.com/blog/website-optimization-8-speed-up-tips/ Reduce HTTP requests, Minify CSS and JavaScript, CSS in the head section and scripts at the bottom, Compressing images, Use a content delivery network, Properly set the expires value to leverage caching, Avoid redirects, Prefetch domain names and increase the TTL of your DNS records
I think the best solution would be a professional CDN because 1 GB is pretty big even if you have a good connection. KeyCDN offers a pay-as-you-go pricing model and they only charges you $0.04 / GB. I used them before to distribute huge files of research data (~40GB).
KeyCDN offers definitely great value for the money. I've been using it for quite some time now and I'm very happy with it. They offer both Custom SSL and Secure Token for free. Check out Cloudharmony to compare some CDNs from your location.
While your math seems fine, there's actually a lot of other factors that play into the total latency amount. Distance is obviously a large contributing factor, but so are the amount of hops the signal takes, how many network devices it passes through and the signal loss within the cable itself.
Probably won't work unless the webmail provider wants his page to be embeddable on other pages.
You can read up on the underlying mechanism (X-Frame-Options) and the reasons it exists here.
A common trick is to add a "cachebuster" to the URL of the PDF. For example the Current Date/Time formatted as "A", which changes every millisecond of the day.
But this is debug logging, it's when you want to really dig into what's happening in the application. I would try to enable error logs and hope the grpc-extenions logs some useful stuff when the connection is interrupted.
Yeah, because of the way TCP works, it takes something like 9x your ping time to open a connection and ramp up to 1 Gbit/s, after which you've already transferred like 2 MB. A Reddit user page (on old.reddit.com, which is preferred by all sensible people) is less than 200 kB.
Unless you have a lot of concurrent users on one connection, you should probably care a lot more about latency than throughput when shopping for internet service.
Clip from this page https://www.keycdn.com/support/put-vs-post
The PUT
method completely replaces whatever currently exists at the target URL with something else. With this method, you can create a new resource or overwrite an existing one given you know the exact Request-URI.
So if you use PUT
instead of POST
request, it will update existing item or create one if item does not exist.
Something you can look into is a trace route of your connection between your PC and realm. Have a read of this, you really dont need to read it all :D
​
EDIT: you dont need to use their "tools" you can simply open command prompt and issue the commands manually, with a little bit of google education you can usually work out what the issue is. It may be that your data path has taken a less than ideal route, or there could be a bottleneck somewhere that is beyond your control and probably temporary. HTH
>Hi, wondered if i need CDN at all?My website is localized and accepting only UK-based customers.I once tried using CDN - but it was slowing my site loading times in the UK (whic his, again - the only GEO im focusing in).
>
>Currently i would rank my website as mid-high size (over 60 pages with lots of content and images) and it going to be much heavier in the near future.
>
>My question is: should i use any CDN or relay on my hosting servers (which are located in the UK)?A GRO targeted CDN will make any improvement by performance?
>
>Much appreciate your suggestions,Roncho
Hi and thanks for your replay!
Actually yes, i did tried Cloudflare CDN.
About BunnyCDN, don't you think i should try a UK based CDN like keycdn or ukfast?
Create another VM, install nginx and configure it as a reverse proxy to your local servers.
https://www.keycdn.com/support/nginx-reverse-proxy
Port forward 80 and 443 to your reverse proxy server.
it sounds like your browser is caching the document. you can confirm this by pressing ctrl+f5 to refresh or using a different browser to confirm that the most recent data loads. if that's the case, there are many ways to disable caching. one way to do this is with the apache "header add" directive. you can check this article to see what header values to consider adding to your response:
Please correct me if I'm wrong:
"WebP browser support. Currently, only Google Chrome and Opera support WebP images. Although other popular web browsers such as Firefox, Safari, and IE do not currently support the new image format natively, there has been some discussion regarding this topic on Twitter and in forums"
That error by default on means the web server gets a bigger request (in raw bytes) than it's configured to handle. This page talks about uploading files, but you can add whatever you want to a POST body or GET headers and exceed that limit and get that error without it being an actual file upload.
It seems it could be the nginxproxmanager also being the culprit. I put in a max client size of 0 into the nextcloud ddns entry but no avail....
https://www.keycdn.com/support/413-request-entity-too-large
Any thoughts?
Ahh yes it's apache.
If you just want to set it across the board you can set it on all files. Scroll down to the apache example for what to put in your htaccess
You could write a rest route instead of using admin-ajax, but it sounds like your code isn’t working properly. Check the section on using dev tools to inspect the calls further down this article: https://www.keycdn.com/blog/admin-ajax-php-slow
This sounds like the kind of thing you could probably do with just static file hosting plus a bit of configuration. With nginx, for example, you could turn on autoindex to get it to show a basic file browser, plus password protection for each client's directory. Apache can do the same, though in slightly different ways. Most others should be similarly straightforward.
Not the most visually appealing stuff, but simple and usable for everyone involved -- and it shouldn't take long to get up and running.
Depends on which databases you need to learn.
If you needed to learn, for instance MySQL, I would google 'best MySQL courses reddit', and pick an introductory course from the research that pops up there.
Here is a list of databases most commonly used from a quick google search of 'most common databases used today'.
Long time ago I used this extension on Firefox http://www.brothercake.com/dustmeselectors/
Chrome dev tools also has an option to show the css used on the page after you run an audit, and there another tools I have not used but maybe can help you https://www.keycdn.com/blog/remove-unused-css
Nah, this seems only conditionally true, if you prefetch the dns and if you are in close proximity to the cdn server!
>So as you can see hosting locally, the document complete time was actually almost 50 ms slower. But the first paint occurred at 0.347s as opposed to with Google at 0.535s. And it completed full load faster as well.
Source: https://www.keycdn.com/blog/web-font-performance
A nearly 200 ms earlier first paint – I take that any day!
And another really big argument for locally hosted fonts, at least in Europe is the "new" General Data Protection Regulation.
And a third humongous argument for locally hosted fonts is what op posted. The local hosted open source fonts give me much less of a headache.
Of course!
It had the ability for people to log in/create accounts; a user control panel (change password, edit profile, edit forum signature, edit avatar, "shops" where you could buy items for virtual currency, dailies (like, click here, you might get a random prize, etc.), user shops where you could sell site items for virtual currency, forums, news posts, amongst other things, but those are the main things off the top of my head. It was a site for fans of a certain fandom. Think of maybe like a fandom-themed Neopets. :p
None of use are versed at all in PHP. I have found "PHP generators" online (from this list) but I'm not sure as to how good they are. I also purchased this course on Udemy, but it was quite a few years ago, and I know PHP has gone through some iterations since then and I don't know if what's in the course is still useful. Any pointers would be lovely.
How is this different than using a time based cache on each cell the represents a neuron?
For those unaware of the idea of caching in computer science: https://www.keycdn.com/support/cache-definition-explanation https://docs.microsoft.com/en-us/dotnet/framework/network-programming/time-based-cache-policies https://github.com/google/guava/wiki/CachesExplained
Here are the high level differences https://www.keycdn.com/support/sqlite-vs-mysql
So based on this you could find out what is the end use of the DB.
IMHO you should start on SQLite, you wouldn’t be wasting your MySQL knowledge.
I think you're just being served images with shitty quality.
This "pixelation" to me looks more like JPEG artifacts than anything. Could also be a progressive image not fully loading.
I don't like Cloudflare because clients often get 403 error. Stackpath and KeyCDN are the best choices for WordPress. Finally I chose KeyCDN because it's much easier to use and affordable.
I'd beg to differ as far as benefits are concerned. for example performance vise website benefit a lot (after all you do serve HTML pages example and I know speed scores are not all). sure you gen get your WP to good great scores but the road to it and the costs are far bigger IMO. on top of that security and hosting become minor issues.
It shouldn't and if your site is using https you don't want to use http on your CDN, you'll get all sorts of mixed content errors. I'm not familiar with 1&1, but if https isn't enabled by default I would image there's an option to do so.
If Autoptomize on the main settings page, at the very bottom there's a CDN option. All you have to do is plug the url of your CDN (the cdn.xxxxx.de) in there and Autoptomize should work fine. If you've got your own subdomain through 1&1 for a cdn your configuration options are most likely going to be different than if you went through Cloudflare directly.
https://www.keycdn.com/support/wordpress-cdn-integration-with-w3-total-cache
https://www.techradar.com/news/best-dns-server
https://www.keycdn.com/blog/best-free-dns-hosting-providers
I use Rackspace myself.
I'm honestly surprised HostGator does not offer self-serve DNS hosting.
I actually got it from this article!I think the only 2 way to sort the waterfall is from what's loaded first, or what's loaded last. And the picture the article gave wasnt following any of the rules. Which is odd, I don't think it's a huge deal though!
This is likely a CORS issue. Essentially the editor’s web server is blocking you from loading certain resources from an external site. It’s done for security purposes. This site might help explain it better. Not sure you can do anything about it except just uploading all your resources to the editor.
Quite a few topics here with a large amount that I can't readily type up.
> I can't seem to find any source on cacheing in React. Could anyone briefly show me how to do it/an article on it? How do we browser cache a react project?
There's no react-specific caching mechanism. And you may find that you may not want your app cached in user's browsers.
> What about CDN caches, is there a code we need to set up in our react project that allows us to use CDN caches?
Here's a seemingly good article about CDN's and how they operate.
I encourage you to go out and do your own research on these topics.
How can you quickly update internet service prodivers for the new dns for the new host? It's stupid. You don't want your website go down and using new host it's just stupid. Content delivery network has your website on multiple servers if one goes down other one serves your website. And you have time to fix your hosting while your website is being served.
try lsyncd, and here, should work for small amount of data, it's basically rsync + os events. if you run it up both ways, it will work both ways, just like your not yet written script...
glusterfs bricks ?
drbd master-master
The number of visitors you have is pretty low, but if you're trying to sell something, performance is really important.
CDN can be quite easy and affordable, for example KeyCDN will cost you few $ per month and there's a WordPress plugin for it. Tutorial: https://www.keycdn.com/support/wordpress-cdn-integration-with-cdn-enabler
I’ve honestly never made a site with video but I’ve been in field long enough to know it’s doable and accepted.
With a little google searching, I found this
If you want them to load really fast for all users, put them in CDN:
What's wrong with hosting them on Youtube and just linking on your website anyway?
Not sure about Cloudflare, but there are other CDNs that allow 100MB+ files. You do have to pay for bandwidth cost though, and they don't have some of Cloudflare's security features. Example: keycdn
It stands for cross origin resource sharing and yes, it is something that should be fixed as soon as possible. Usage of CDNs is not all that new and can be beneficial for SEO since response times and user experience are generally better. &nspb; I am surprised the developers didn't offer any solutions since they should be aware that the response headers of the various servers involved are required to forward certain information detailing, among other things, the origin domain of the requested resources. I would initially contact the support services of Cloudflare since this is probably a common occurrence if servers are incorrectly Set up. The following link gives a decent explanation of the problem.
Getting your client to add a random query string to the end of the script path can help with cache busting (however, there are some caveats https://www.keycdn.com/support/what-is-cache-busting) and causes the browser to fetch the newer version of the script:
<script src="javascript.js?v=h3hdy2"></script>
Why not park the domain on Cloudflare. It's free, more secured, SSL cert doesn't require know how (esp. for newbies). Just make sure to create to create a www & cdn sub domains for cookies & static content delivery as the cache on free Cloudflare is super slow & use a free plugin I think Autoptimize for CDN set up so you don't have to do those steps on setting up a CDN.
Coming from an IT worker who grew up with broadband access:
DNS-based filtering is the simplest and cleanest solution to get what you are looking for. You can configure it at the network-level on your home router, or you could configure it on each device... or both! It can be used for passive ad-block, as well as restricting access to undesirable sites. If you are technically inclined, you could roll your own using a Raspberry Pi and Linux... but there are plenty of cheap or free services to use. Often the services are free with default options, and then there is a paid option that lets you customize what is blocked.
For home networks: All you have to do is dig through your home router, and change one setting (the DNS servers). Just google how to do this for your given home router. Now you have adblock and filtering applied to anything using your network. "Hey honey, did we just upgrade our internet? All of these websites load super fast now!" Yeah, that's because a big chunk of web traffic is from advertisements and tracking scripts- and now they can't load anymore.
For mobile networks / individual devices: Each service provider has its own solution for filtering traffic on their network, for when the kid is using their mobile data plan. DNS filtering can work at the device level as well, so that the filtering applies for any network they are using. However, a savvy kid could change the DNS settings to use something else- or they could use a proxy / VPN service to bypass the filter.
I would avoid installing any filtering or snooping apps on each device. They are easy to bypass via google, they erode trust with your kid, and they often contain vulnerabilities that can be exploited by bad actors.
Alright, I knew I was doing something wrong. So I need to remove the A records for my Internal DNS. Then I need to create server blocks so that when I type in vcenter.domain.local, it goes the to the reverse proxy. My question is, the only way I would be able to connect to Vcenter then, would be through an IP address. Does this server block allow me to type in the domain which then gets resolved by the reverse proxy?
EDIT: The tutorial i followed was showing me how to create the server blocks, just not how to add the SSL certificate to the site. This looks like it's providing a better example https://www.keycdn.com/support/nginx-virtual-host In the article it looks like they provide the pathnames for their SSL certificates. My head is killing me so I could be completely lost right now and have no idea what I'm actually saying.
https://www.keycdn.com/support/nginx-reverse-proxy/
First result on google for reverse proxy, and it should be what your looking for. Make sure your formatting is correct for the config file, remember to properly set base URL paths in the apps and use https. Then close all of he individual ports you opened
But also, as network technology gets better and more bandwidth is available websites and web services, they become more and more complex and need to push more and more data to your phone to run properly.
edit: anonymous users
I'm googling articles about how to improve drupal performance.
One of them says you should enable compression under /admin/config/development/performance
I'm using Drupal 8 and it says "Aggregate CSS files" instead of "Aggregate & compress CSS files"
How do I enable compression?
Also a bunch of these articles are suggesting certain modules that only support Drupal 7.
I'm confused, should I downgrade to Drupal 7 since a lot of things I'm googling don't seem to be available in Drupal 8?
For example https://www.keycdn.com/blog/speed-up-drupal/
Here it says you can use a reverse proxy serve to improve performance.
But the modules it suggests are Varnish & Cache Expiration. Which haven't been updated for Drupal8.
I'm also seeing a lot of themes that are not available for 8.
Is everyone staying on Drupal 7? Do I get better speed on 7? (It seems like the good modules are not on 8)
Edit: I'd like to add that whenever I google anything drupal related (a problem or how to do something) Majority of the results are from at least 5+ years ago.
While I have managed to solve many problems through that. It makes me question if I ever run into a problem in D8, I'm probably going to be screwed so I am better off just using 7 if I want better functionality & support?
So many suggestions for you - but I really encourage you to go through 'Joomla Hardening' to cut off access to bots, and to the creation of non-approved accounts which just wait for exploits to be found. Here's a good initial primer: https://docs.joomla.org/Security_Checklist/Joomla!_Setup as well as https://www.keycdn.com/blog/joomla-security/
Yes, bandwidth is often used to describe two different things:
Bandwidth capacity, which is the maximum throughput
Bandwidth accumulated consumption. This is the total data transferred.
I'm pretty sure all hosting providers will be charging for data i/o, ie. bandwidth accumulated consumption (although technically, I don't believe DigitalOcean currently is, but it's planned for in the future). You will also have a bandwidth capacity. When streaming large amounts of data, it's most likely cheaper to use a Content Delivery Network (CDN) that caches your data around the world and delivers to your users from their own network of servers. This has the benefit of not needed as much bandwidth capacity in your network and faster download since they can stream from a closer server to them geographically.
A quick google, and I found these guys, https://www.keycdn.com/pricing. Never used them, but they go down to 0.01/GB after 500TB of transfer/ mo. Also, keep in mind, there's a cost of just storing the data as well.
https://www.keycdn.com/ <-easy
https://www.rackspace.com/en-us/cloud/cdn-content-delivery-network <-fully featured
https://www.akamai.com/ <-ambitious
It's good you are not ignorant of how SSL works because these companies will lie to you and recommend you services you don't need.
Scss is the file-type for Sass. mixed that up.
Main difference is that Sass is based in Ruby and Less in javascript. But there's some syntactical differences as well.
I found this article that might help keycdn.com/.../sass-vs-less/
I would recommend the following:
See more in-depth explanation of above here: https://www.keycdn.com/blog/website-performance-optimization/
Also, I personally wrote up a post about how I sped up my WordPress install from 1.52 seconds to 276ms. Some good info in there: https://woorkup.com/speed-up-wordpress/
Hopefully that helps!
From what I've seen, https://www.keycdn.com/pricing is the cheapest standard CDN I've seen.
There is hola cdn which is much cheaper: http://holacdn.com/ but you have to use their plugins, so it's not your typical CDN.
I recommend you read these two posts: https://brianjackson.io/speed-up-wordpress/ https://www.keycdn.com/blog/speed-up-wordpress/
There are some great plugins like Cache Enabler and Gonzalez which I bet you haven't tried. Gonzalez actually lets you disable scripts on a page/post level basis. Example, Contact Form 7 loads its script on every page of your site by default. With this plugin you can with one click, only let it load on your contact page. On all my sites I have been able to decrease HTTP requests on homepage by at least 5 or more. On an Avada install I decreased homepage by 11 requests! Definitely one of those hidden gem plugins.
KeyCDN is definitely a very interesting option for you if you only have 60GB/month because KeyCDN has pure PAYG plans. You really only pay for what you use. No monthly fee. I also use KeyCDN for my blog and it works excellent. They have also launched a free WP CDN plugin: https://wordpress.org/plugins/cdn-enabler/
KeyCDN is a great CDN. We've saved money with KeyCDN compared to other CDNs and also the feature set is very good. I've never had any issues with the CDN and I can recommend it.
Some key factors are:
Do you have a global user base? Doesn't matter where your server is located, it's never ideal for a global audience.
How important is uptime? A single server can go down any time.
Do you have traffic spikes? If yes, you're way better off with a CDN
Operational cost? Dedicated server can also sum up quickly
CDNs are not so expensive anymore these days, so maybe you have to ask yourself why shouldn't you use a CDN?
I use KeyCDN and I only pay $0.04/GB. There's no commitment and no monthly fee. This works better for me than a dedicated server.
Name / URL: KeyCDN
What do you do: We accelerate web content. We cache static content at different locations all around the world. Our service can be easily integrated into websites or other apps and software.
Looking for: Let us know if you have marketing expertise in the area of web performance or CDNs in general.