0

We store all code files(.js/.css) in Style Library/Site Assets Library in SharePoint Publishing site. Sometimes, we/end users don’t see the updated JavaScript/CSS files in Browser even after clearing browser cache/restarting computer/adding query string parameter in URL(like /file.js?v=1.0). But, if we download the file manually from SharePoint Library, we could see the changes(updated one). I think it would be related to Blob Cache/Server cache in SharePoint WFE server.

Any insights please?

Kindly let me know if you need any other details. Thanks!

2 Answers 2

0

yes, this is definitely BLOB Cache, you need to flush BLOB cache.

Below power shell script would do same.

$webApp = Get-SPWebApplication "<WebApplicationURL>"
 [Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
 Write-Host "Flushed the BLOB cache for:" $webApp

Ref link

3
  • Since I don't have access to server, wouldn't be able to do it everytime I make changes. I would like to know if anything can be done within site collection level like disabling caching for certain pages/master page/ site settings. Thanks! Commented Apr 25, 2019 at 7:38
  • Read about output cache profile here - sharepoint.stackexchange.com/questions/63001/… Commented Apr 25, 2019 at 10:20
  • I have already read that post. Output cache profile is different than Blob cache and Blob cache settings can't be changed/managed by me. Commented Apr 25, 2019 at 10:40
0

This could also be happened when you forgot to check-in and publish that files. Without publish, only the author can see the changes.

1
  • Its not an issue about check-in/publish. Even some developers who made the actual change don't see it. Thanks! Commented Apr 25, 2019 at 7:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.