I open some new tabs with instruction

window.open(url, '_blank');

but if I close the opened tab and retry the same URL doesn't work. Only if I reload the part of the code that contains the URLs (the list of URLs is dynamically generated by an ajax call) work again. I've tried to avoid caching (with various META) but nothing was useful to solve the problem.

I've searched here and in other similar sites but I've found only suggestion about the META to avoid the cache of the page.

$('#redirect_to_operator').removeClass("hidden");
var url = $(this).attr("data-url");
$(this).delay(500).queue(function() {
  window.open(url, '_blank');
  $('#redirect_to_operator').addClass("hidden");
  window.location.href = '#categoria_prodotti_disponibili';

0 Answers