Answer the question
In order to leave comments, you need to log in
How to disable caching on nginx?
Good evening.
Available: hosting on digitalocean, vestacp is installed on it, nginx and apache2 are on the vest.
The problem is that one of them (nginx or apache) does not want to give real statics, but gives cached ones. It comes to a ridiculous turn that the file no longer physically exists, but the server thinks that it exists. Actually what I do:
<script src="http://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
<script src="scripts/map.js" type="text/javascript"></script>
<div id="map" style="height: 600px; width: 400px;"></div>
var map;
test();
function test()
{
ymaps.ready(initializeMap);
}
function initializeMap(){
map = new ymaps.Map("map", {
center: [55.76, 37.64],
zoom: 6,
controls: ['geolocationControl', 'fullscreenControl', 'zoomControl']
});
ymaps.geoXml.load("qwerty.xml").then(function (res) {
map.geoObjects.add(res.geoObjects);
}, function (error) {
alert(error);
});
}
Answer the question
In order to leave comments, you need to log in
nginx.conf - show me, posted a bunch of everything except what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question