diff --git a/docs-parent/TODO b/docs-parent/TODO index 34dea5b7..f8c0fc2f 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1,7 +1,6 @@ -- Reordering files (server) - Autocomplete on document title (client/server) -- Cache headers on /file/:id/data (server) +- List opened sessions and ability to close them (client/server) - Display logs (client) -- Users administration (client) +- Reordering files and add new files to the end (server) - Tag stats (client/server) -- List opened sessions and ability to close them (client/server) \ No newline at end of file +- Users administration (client) \ No newline at end of file diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java index 805cc57f..e5ea0f5b 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java @@ -4,7 +4,9 @@ import java.io.BufferedInputStream; import java.io.InputStream; import java.nio.file.Paths; import java.text.MessageFormat; +import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Date; import java.util.List; import javax.persistence.NoResultException; @@ -252,6 +254,7 @@ public class FileResource extends BaseResource { return Response.ok(storedfile) .header("Content-Type", file.getMimeType()) + .header("Expires", new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z").format(new Date().getTime() + 3600000 * 24 * 7)) .build(); } } diff --git a/docs-web/src/main/webapp/favicon.png b/docs-web/src/main/webapp/favicon.png new file mode 100644 index 00000000..9a6e5ee2 Binary files /dev/null and b/docs-web/src/main/webapp/favicon.png differ diff --git a/docs-web/src/main/webapp/index.html b/docs-web/src/main/webapp/index.html index 61ea1a3a..4402e2b0 100644 --- a/docs-web/src/main/webapp/index.html +++ b/docs-web/src/main/webapp/index.html @@ -3,7 +3,8 @@ Sismics Docs - + +