content-index
content-index copied to clipboard
Need more content metadata to able sort or filter it from the list
Talking about content, it will be great to have more content metadata to able show it properly in the list. For example created time and updated time will be useful to sort the content after we pull it from the list.
WordPress Post object will be a good reference for available content metadata.
I'm wary of adding any more fields to the already pretty large ContentDescription
dict. It only contains the information the browser needs to know at registration time at the moment.
The content itself needs to be tracked elsewhere anyway (somewhere like CacheStorage/IndexedDB), any additional metadata can be stored there for now. There's also work being done to return metadata/stats with Cache entries, here's the explainer.