WICKET-5441 IResourceCachingStrategy implementations should only set caching if version matches

(cherry picked from commit 8ccb1f6de4479bef623bc97dd4ad4abeb7b802df)
Mark IPageLink as deprecated
Remove unneeded double cast