cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

If-Modified-Since and Last-Modifed headers

New member | Level 2
New member | Level 2

Hi, i need to know if Dropbox supports If-Modified-Since and Last-Modifed http headers.

 

The thing is that i need to know when a file is updated, and i think this fuctionality is not sopported by Dropbox.

 

Can you help me? Maybe i could do it through de API?

 

Thanks in advance.

 

 

 

1 Accepted Solution

Accepted Solutions
Highlighted

Re: If-Modified-Since and Last-Modifed headers

Dropboxer
Dropboxer

The Dropbox API doesn't support If-Modified-Since/Last-Modifed header functionality.

 

Instead, to check if a file has changed, you can store/check the 'rev' value in the file's metadata. For example, you can call /2/files/get_metadata and store the returned 'rev' value. When you call back later, if the 'rev' value has changed, you know the file changed. This also works with any call where you get file metadata back, e.g., /2/files/list_folder[/continue], etc. Likewise, you can use the 'content_hash' value to check if the file data itself is different.

 

The file metadata also contains 'client_modified' and 'server_modified' information indicating when the file changed.

View solution in original post

1 Reply 1
Highlighted

Re: If-Modified-Since and Last-Modifed headers

Dropboxer
Dropboxer

The Dropbox API doesn't support If-Modified-Since/Last-Modifed header functionality.

 

Instead, to check if a file has changed, you can store/check the 'rev' value in the file's metadata. For example, you can call /2/files/get_metadata and store the returned 'rev' value. When you call back later, if the 'rev' value has changed, you know the file changed. This also works with any call where you get file metadata back, e.g., /2/files/list_folder[/continue], etc. Likewise, you can use the 'content_hash' value to check if the file data itself is different.

 

The file metadata also contains 'client_modified' and 'server_modified' information indicating when the file changed.

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?