Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Jl #623

Merged
merged 3 commits into from Oct 12, 2012
Merged

Jl #623

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/app/middleware/mojito-handler-static.js
Expand Up @@ -19,7 +19,7 @@
*/


/*jslint anon:true, sloppy:true, nomen:true*/
/*jslint node:true, anon:true, sloppy:true, nomen:true */


/*
Expand Down Expand Up @@ -198,9 +198,13 @@ function staticProvider(store, globalLogger) {

// Use the resource store as a URI "rewriter" here.
// /favicon.ico is sent to ./my_app_folder/assets/favicon.ico
// /robots.txt is sent to ./my_app_folder/assets/robots.txt
// /crossdomain.xml is sent to ./my_app_folder/assets/crossdomain.xml
filename = urls[path];
// TODO: [Issue 80] remove this for performance
if ((!filename) && (path === '/favicon.ico')) {
if (!filename &&
(path === '/favicon.ico' ||
path === '/robots.txt' ||
path === '/crossdomain.xml')) {
filename = pa.join(store._config.root, 'assets', path);
}

Expand Down