diff --git a/src/main/java/org/olat/core/commons/modules/bc/commands/CmdServeResource.java b/src/main/java/org/olat/core/commons/modules/bc/commands/CmdServeResource.java
index 56bc307f2d5aac28691b57eb7de63a87f9d02591..ef4cedad87976f3dc20234cfd6e794f4d146f159 100644
--- a/src/main/java/org/olat/core/commons/modules/bc/commands/CmdServeResource.java
+++ b/src/main/java/org/olat/core/commons/modules/bc/commands/CmdServeResource.java
@@ -136,7 +136,12 @@ public class CmdServeResource implements FolderCommand {
 				mr = vmr;
 			} else {
 				// binary data: not .html, not .htm, not .js -> treated as is
-				mr = new VFSMediaResource(vfsfile);
+				VFSMediaResource vmr = new VFSMediaResource(vfsfile);
+				// This is to prevent the login prompt in Excel, Word and PowerPoint
+				if (path.endsWith(".xlsx") || path.endsWith(".pptx") || path.endsWith(".docx")) {
+					vmr.setDownloadable(true);
+				}
+				mr = vmr;
 			}
 		}