set cookie and refresh to make sure PDF links are expanded

Change-Id: I8742ee82d76d7beb6339cc095684753cae81bf42
Merge "set cookie and refresh to make sure PDF links are expanded"