From 859bd5de08407123c7e5cd06dcfd140686ac1873 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 26 Oct 2018 10:35:55 +0200 Subject: [PATCH] Add SCORM optimization for content with lots of JS/CSS by allowing direct access to JS and CSS files only --- .htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index daa5cda17f..fd1c32829f 100644 --- a/.htaccess +++ b/.htaccess @@ -23,6 +23,8 @@ RewriteRule ^courses/([^/]+)/?$ main/course_home/course_home.php?cDir=$1 [QSA,L] RewriteRule ^courses/([^/]+)/index.php$ main/course_home/course_home.php?cDir=$1 [QSA,L] # Rewrite everything in the scorm folder of a course to the download script +# except JS and CSS files, which can be served directly +RewriteRule ^courses/([^/]+)/scorm/(.*([\.js|\.css]))$ app/courses/$1/scorm/$2 [QSA,L] RewriteRule ^courses/([^/]+)/scorm/(.*)$ main/document/download_scorm.php?doc_url=/$2&cDir=$1 [QSA,L] # Rewrite everything in the document folder of a course to the download script