Improve Syncing Obsidian Vault, Invalidate Static Assets in Browser Cache in Web Client (#657)

- Improve
  - Only send files modified since their last sync for indexing on server from the Obsidian client
- Fix 
  - Invalidate static asset browser cache in Web client when Khoj version changes
This commit is contained in:
Debanjum
2024-02-24 20:20:30 +05:30
committed by GitHub
13 changed files with 83 additions and 31 deletions

View File

@@ -106,6 +106,7 @@ function filenameToMimeType (filename) {
case 'org':
return 'text/org';
default:
console.warn(`Unknown file type: ${extension}. Defaulting to text/plain.`);
return 'text/plain';
}
}