Skip to content

Commit b6fe70b

Browse files
committed
updating cdn to static content
1 parent 298bcdf commit b6fe70b

File tree

4 files changed

+106
-13
lines changed

4 files changed

+106
-13
lines changed

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-12-01T13:21:28Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-12-03T09:39:50Z</updated></feed>

index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<li><a href="#database">Database</a></li>
5656
<li><a href="#wsgi-server">WSGI Server</a></li>
5757
<li><a href="#web-framework">Web Framework</a></li>
58-
<li><a href="#content-delivery-network">CDN</a></li>
58+
<li><a href="#static-content">Static Content</a></li>
5959
<li><a href="#website-security">Website Security</a></li>
6060
<li><a href="#caching">Caching</a></li>
6161
<li><a href="#web-analytics">Web Analytics</a></li>
@@ -415,9 +415,12 @@ <h2>Web Framework Resources</h2>
415415
</div>
416416

417417
</section>
418-
<section id="content-delivery-network" class="tech-section">
419-
<h1>CDN</h1>
420-
<p>A content delivery network (CDN) serves static file assets.
418+
<section id="static-content" class="tech-section">
419+
<h1>Static Content</h1>
420+
<p>Some content on a website does not change and therefore should be served
421+
up either directly through the web server or a content delivery network (CDN).
422+
Examples include JavaScript, image, and CSS files.</p>
423+
<p>A CDN is a third party that serves your static files.
421424
<a class="reference external" href="http://aws.amazon.com/cloudfront/">Amazon CloudFront</a>,
422425
<a class="reference external" href="http://www.akamai.com/">Akamai</a>, and
423426
<a class="reference external" href="http://www.rackspace.com/cloud/public/files/">Rackspace Cloud Files</a>
@@ -431,8 +434,8 @@ <h1>CDN</h1>
431434
requests to the Green Unicorn WSGI server.</p>
432435
<p>CDNs distribute request load globally by using data centers in different
433436
locations.</p>
434-
<div class="section" id="cdn-resources">
435-
<h2>CDN Resources</h2>
437+
<div class="section" id="static-content-resources">
438+
<h2>Static Content Resources</h2>
436439
<p><a class="reference external" href="http://blog.doismellburning.co.uk/2012/07/14/using-amazon-s3-to-host-your-django-static-files/">Using Amazon S3 to host your Django static files</a></p>
437440
<p><a class="reference external" href="http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx">CDNs fail, but your scripts don't have to</a></p>
438441
<p><a class="reference external" href="http://django-storages.readthedocs.org/en/latest/">django-storages</a> is

pages/static-content.html

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<!doctype html>
2+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
3+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
4+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
5+
<!--[if gt IE 8]><!-->
6+
<html class="no-js" lang="en"> <!--<![endif]-->
7+
8+
<head>
9+
<meta charset="utf-8">
10+
<meta name="language" content="English" />
11+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
12+
13+
<title>Full Stack Python</title>
14+
<meta name="description" content="Full stack Python shows how an entire Python web application is built, from the server to the front end JavaScript.">
15+
<meta name="author" content="Matt Makai">
16+
<meta name="viewport" content="width=device-width,initial-scale=1">
17+
<link rel="stylesheet" href="/css/c.css" />
18+
<link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
19+
<script src="/js/modernizr-2.0.6.min.js"></script>
20+
<script type="text/javascript">
21+
22+
var _gaq = _gaq || [];
23+
_gaq.push(['_setAccount', 'UA-19910497-7']);
24+
_gaq.push(['_trackPageview']);
25+
26+
(function() {
27+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
28+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
29+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
30+
})();
31+
32+
</script>
33+
</head>
34+
35+
<body>
36+
<a href="https://github.com/makaimc/fullstackpython.github.com" class="github">
37+
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
38+
</a>
39+
<div class="container">
40+
<div class="row">
41+
<div class="span12">
42+
<div class="logo-header-section">
43+
<a href="/"><img src="../img/full-stack-python-logo-bw.png" height="42" width="42" class="logo-image" /></a>
44+
<span class="logo-title"><a href="/">Full Stack Python</a></span>
45+
</div>
46+
</div>
47+
</div>
48+
<h1>Static Content</h1>
49+
50+
51+
<p>Some content on a website does not change and therefore should be served
52+
up either directly through the web server or a content delivery network (CDN).
53+
Examples include JavaScript, image, and CSS files.</p>
54+
<p>A CDN is a third party that serves your static files.
55+
<a class="reference external" href="http://aws.amazon.com/cloudfront/">Amazon CloudFront</a>,
56+
<a class="reference external" href="http://www.akamai.com/">Akamai</a>, and
57+
<a class="reference external" href="http://www.rackspace.com/cloud/public/files/">Rackspace Cloud Files</a>
58+
are examples of CDNs. The purpose of a CDN is to remove the load of static
59+
file requests from web servers that are handling dynamic web content. For
60+
example, if you have an nginx server that handles both static files and
61+
acts as a front for a Green Unicorn WSGI server on a 512 megabyte
62+
virtual private server, the nginx server will run into resource
63+
constraints under heavy traffic. A CDN can remove the need to serve static
64+
assets from that nginx server so it can purely act as a pass through for
65+
requests to the Green Unicorn WSGI server.</p>
66+
<p>CDNs distribute request load globally by using data centers in different
67+
locations.</p>
68+
<div class="section" id="static-content-resources">
69+
<h2>Static Content Resources</h2>
70+
<p><a class="reference external" href="http://blog.doismellburning.co.uk/2012/07/14/using-amazon-s3-to-host-your-django-static-files/">Using Amazon S3 to host your Django static files</a></p>
71+
<p><a class="reference external" href="http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx">CDNs fail, but your scripts don't have to</a></p>
72+
<p><a class="reference external" href="http://django-storages.readthedocs.org/en/latest/">django-storages</a> is
73+
a Django library for managing static and media files on services such as
74+
Amazon S3 and other content delivery networks.</p>
75+
</div>
76+
77+
<hr/>
78+
<div class="footer pull-right">
79+
<a href="http://www.mattmakai.com/" class="underline">Matt Makai</a> 2013
80+
</div>
81+
</div>
82+
83+
<script src="http://code.jquery.com/jquery-latest.js"></script>
84+
<script src="/js/bootstrap.min.js"></script>
85+
</body>
86+
</html>

source/content/pages/content-delivery-network.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
CDN
2-
===
1+
Static Content
2+
==============
33

44
:category: page
5-
:slug: content-delivery-network
5+
:slug: static-content
66
:sort-order: 08
77

8-
A content delivery network (CDN) serves static file assets.
8+
Some content on a website does not change and therefore should be served
9+
up either directly through the web server or a content delivery network (CDN).
10+
Examples include JavaScript, image, and CSS files.
11+
12+
A CDN is a third party that serves your static files.
913
`Amazon CloudFront <http://aws.amazon.com/cloudfront/>`_,
1014
`Akamai <http://www.akamai.com/>`_, and
1115
`Rackspace Cloud Files <http://www.rackspace.com/cloud/public/files/>`_
@@ -22,8 +26,8 @@ CDNs distribute request load globally by using data centers in different
2226
locations.
2327

2428

25-
CDN Resources
26-
-------------
29+
Static Content Resources
30+
------------------------
2731
`Using Amazon S3 to host your Django static files <http://blog.doismellburning.co.uk/2012/07/14/using-amazon-s3-to-host-your-django-static-files/>`_
2832

2933
`CDNs fail, but your scripts don't have to <http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx>`_

0 commit comments

Comments
 (0)