Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
Learn what static assets are.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
variables and cookies.
0:00
But sometimes a server doesn't
need to do anything more
0:01
complex than sending the files
directly to the user.
0:04
Static files like images and
0:07
style sheets don't need to be
processed by the application.
0:09
They just need to be
delivered to the browser.
0:13
Let me show you how that
works by setting up our
0:16
app to deliver a custom style sheet.
0:19
In case you're still
confused about dynamic and
0:21
static content,
let me quickly explain the difference.
0:23
When a browser makes a get request to
the index route of our application,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up