Determining If A File Is Sent From The Proxy Or The Server
TASK
How can I determine if a file has been sent from the Proxy or the Server?
SOLUTION
To determine whether a file synced to a client is delivered from the proxy cache, you can use the flag -Zproxyverbose in your p4 sync command.
Example
p4 -Zproxyverbose sync //depot/foo.txt
If the file is being delivered from the proxy cache you see output similar to the following:
//depot/foo.txt#7 - added as c:p4foo.txt File c:p4foo.txt delivered from proxy server
If the message "File ... delivered from proxy server" is not present, then the file was not delivered from the proxy cache.
