Como faço pra dar um refresh nessa url dentro da função success do ajax .
Tentei fazer mas não esta funcionando .
`$( document ).ready(function() {
$(".teste").on('click',function(){
$.ajax({
url: "http://localhost/php/files/postgresql.pdf",
context: document.body,
type: “GET”,
success: function(){
window.open('http://localhost/php/files/postgresql.pdf');
window.location.reload(true);
}
});
});
});
`