1async function getInstagramPostJson() { 2 // Aggiungiamo un timestamp corrente alla fine dell'URL 3 const timestamp = new Date().getTime(); 4 const url = `https://www.iconcertinelparco.it/tools/instagram_posts_new_7.json?v=${timestamp}`; 5 6 try { 7 // Puoi anche forzare ulteriormente aggiungendo le opzioni di cache al fetch 8 const response = await fetch(url, { cache: "no-store" }); 9 10 if (!response.ok) { 11 throw new Error('Errore durante il caricamento dei dati'); 12 } 13 return await response.json(); 14 } catch (error) { 15 console.error('Errore:', error); 16 } 17} 18 19function createInstagramPostHtml(post) { 20 return `<li> 21 <a href="${post.link}" target="_blank"> 22 <img crossorigin="anonymous" src="${post.images.thumbnail.url}"/> 23 </a> 24</li>`; 25}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.