S
S
Sergey2014-11-03 21:26:15
Nginx
Sergey, 2014-11-03 21:26:15

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);
            });
}

I'm trying to load marks on Yandex maps via xml, everything seems to work, but only if you change the file, then no changes will occur. Now, for example, the qwerty.xml file no longer exists, but the site still displays the label that it contained. Perhaps this is some kind of Yandex bug, if anyone has dealt with it, then tell me what to do.
os: debian 7
tried sendfile off; - did not help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-11-03
@RicoX

nginx.conf - show me, posted a bunch of everything except what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question