NetworkError: 404 Not Found, 403 Forbidden

My Elgg installation is in http://www.mysite.com/demo/ and I'm getting errors like this:

"NetworkError: 404 Not Found - http:/www.mysite.com/demo/mod/template_switcher/vendors/jquery-cookie%5Cjquery.cookie.js"

"NetworkError: 403 Forbidden - http:/www.mysite.com/demo/cache/0/default/js/theme/update.js"
 
In htaccess I've tried with and without RewriteBase /demo/
 
Anybody knows what could be the problem?