(c *gin.Context)
| 20 | ) |
| 21 | |
| 22 | func getLastModified(c *gin.Context) time.Time { |
| 23 | now := time.Now() |
| 24 | lastModifiedStr := c.GetHeader("Last-Modified") |
| 25 | lastModifiedMillisecond, err := strconv.ParseInt(lastModifiedStr, 10, 64) |
| 26 | if err != nil { |
| 27 | return now |
| 28 | } |
| 29 | lastModified := time.UnixMilli(lastModifiedMillisecond) |
| 30 | return lastModified |
| 31 | } |
| 32 | |
| 33 | // shouldIgnoreSystemFile checks if the filename should be ignored based on settings |
| 34 | func shouldIgnoreSystemFile(filename string) bool { |