---
title: "浏览器总是下载sakai resource工具中的HTML文件"
author: "liuyf"
date: "2010-10-20T16:20:47Z"
tags: []
categories: ["企业架构"]
slug: "sakai-resource-html"
draft: false
lastmod: "2010-10-20T16:20:47Z"
id: 789679
url: "https://liuyf.iteye.com/blog/789679"
---

当我们想在其他地方引用resource工具中的资源时（通常是一个html文件），可能会遇到浏览器直接下载该资源，而不是在浏览器中直接显示。

这种情况可以通过修改sakai配置文件来解决

view sourceprint?1 # Force browser to download rather than render inline any file served from content hosting with a content-type of text/html.  

# Default=true 

content.html.forcedownload=false 

http://www.sakai-edu.net> ]